1
0
Fork 0

Add: "Top 10 Most Frequent Artists" to music stats

This commit is contained in:
Aroy-Art 2024-09-22 22:00:20 +02:00
parent 35ce88e7e7
commit 8014d3a034
Signed by: Aroy
GPG key ID: DB9689E9391DD156

View file

@ -48,3 +48,11 @@ plt.xlabel('Length (seconds)')
plt.ylabel('Count')
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()