text_html_output_1.png
import pandas as pd

ds = pd.read_csv('/kaggle/input/spotify-datacsv/spotify_data.csv', dtype={'19': float})
ds

ds.isna().sum()

ds.shape

ds.columns

len(ds.columns)

top_ten_genre = ds.groupby('artists').count().sort_values(by='name', ascending=False)['name'][:10]
top_ten_genre

top_instrumental_songs = ds[['instrumentalness', 'artists', 'name']].dropna(subset=['artists']).sort_values(by='instrumentalness', ascending=False)[:5]
top_instrumental_songs