We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2ad816 commit b36148dCopy full SHA for b36148d
data_visualization/matplotlib_seaborn.md
@@ -20,8 +20,9 @@ pd.set_option('max_columns', 200)
20
nba = pd.read_excel("NBA_team_data.xlsx")
21
```
22
23
+## Visualizations
24
-## Bar chart
25
+#### Bar chart
26
27
28
nba_graph = nba[['TEAM','W']] \
@@ -33,3 +34,31 @@ plt.xlabel('Wins')
33
34
plt.title('Number of victories by Team')
35
plt.show()
36
37
+
38
39
+#### Scatter plot with Matplotlib
40
41
+```
42
+nba.plot(kind='scatter',
43
+ x = 'W',
44
+ y = 'PTS',
45
+ title = 'Wins vs Points')
46
+plt.show()
47
48
49
50
+#### Scatter plot with Seaborn
51
52
53
+nba_scatter = sns.scatterplot(
54
55
56
+ hue = 'L',
57
+ data=nba
58
+)
59
60
+nba_scatter.set_title('Wins vs. Points')
61
62
63
64
+plt.show()```
0 commit comments