text_html_output_1.png
import matplotlib.pyplot as plt

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

sounds_df = pd.read_csv('/kaggle/input/urbansound8k/UrbanSound8K.csv')

import matplotlib.pyplot as plt
for i in range(1, 11):
    fold_df = sounds_df[sounds_df['fold'] == i]
    fold_freq = fold_df['class'].value_counts()

sounds_df.plot.hist(bins=10, column=['duration'], by='class', figsize=(5, 20))
plt.tight_layout()