Skip to content

Commit 1c3f2dd

Browse files
add c6-1 missing question (#3)
1 parent 0048831 commit 1c3f2dd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

06_introduction-to-data-visualization-with-seaborn/01_introduction-to-seaborn.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,14 @@ sns.scatterplot(x='absences', y='G3', data=student_data, hue='location')
7777
7878
# Show plot
7979
plt.show()
80+
81+
82+
83+
# Change the legend order in the scatter plot
84+
sns.scatterplot(x="absences", y="G3", data=student_data, hue="location", hue_order=["Rural", "Urban"])
85+
86+
# Show plot
87+
plt.show()
8088
```
8189

8290
### Hue and count plots

0 commit comments

Comments
 (0)