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
plt.figure(figsize=[25, 10])
for i in range(1, 11):
    fold_df = sounds_df[sounds_df['fold'] == i]
    fold_freq = fold_df['class'].value_counts()
    plt.subplot(2, 5, i)
    fold_freq.plot(kind='pie', title=f'fold {i}', autopct='%1.1f%%', shadow=False, fontsize=8)