1
0
Fork 0

Add: graph for Track Length Distribution

This commit is contained in:
Aroy-Art 2024-09-21 23:08:37 +02:00
parent e150e47b91
commit b6cd17e71a
Signed by: Aroy
GPG key ID: DB9689E9391DD156

View file

@ -41,3 +41,10 @@ df = pd.DataFrame(music_data)
import seaborn as sns
import matplotlib.pyplot as plt
plt.figure(figsize=(10, 6))
sns.histplot(df['length'], bins=30, kde=True)
plt.title('Track Length Distribution')
plt.xlabel('Length (seconds)')
plt.ylabel('Count')
plt.show()