Add: "Top 10 Most Frequent Artists" to music stats
This commit is contained in:
parent
35ce88e7e7
commit
8014d3a034
1 changed files with 8 additions and 0 deletions
|
@ -48,3 +48,11 @@ plt.xlabel('Length (seconds)')
|
||||||
plt.ylabel('Count')
|
plt.ylabel('Count')
|
||||||
plt.show()
|
plt.show()
|
||||||
|
|
||||||
|
|
||||||
|
top_artists = df['artist'].value_counts().head(10)
|
||||||
|
plt.figure(figsize=(10, 6))
|
||||||
|
sns.barplot(x=top_artists.values, y=top_artists.index)
|
||||||
|
plt.title('Top 10 Most Frequent Artists')
|
||||||
|
plt.xlabel('Number of Tracks')
|
||||||
|
plt.show()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue