image_output_2.png image_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

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

import seaborn as sns

df = pd.read_csv('/kaggle/input/bbc-news/BBC News Train.csv')

print(df['Category'].value_counts())
sns.countplot(data=df, x='Category', palette='RdBu')
plt.title('The Distribution of Category')