text_html_output_1.png
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

import seaborn as sns

track_csv = pd.read_table('/kaggle/input/-spotify-tracks-dataset/dataset.csv', sep=',')
track_csv = track_csv.rename(columns={'duration_ms': 'duration'})
track_csv['duration'] = track_csv['duration'] / 60000

popularityByGenre = track_csv.groupby([track_csv['track_genre']])['popularity'].mean().sort_values(ascending=False)

popularityByArtist = track_csv.groupby(track_csv['artists'])['popularity'].mean().sort_values(ascending=False)

sadSet = track_csv[track_csv['track_genre'] == 'sad']

pagodeSet = track_csv[track_csv['track_genre'] == 'pagode']
sns.countplot(data=pagodeSet, x='mode')