text_plain_output_1.png
import collections

import matplotlib.pyplot as plt

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

data_path = '../input/vietnamese-text-classification-dataset/train.csv'
df = pd.read_csv(data_path, header=None, names=['label', 'text'])

labels = df['label'].values

value_labels = list(set(labels))
import collections
count_labels = collections.Counter(labels)
observe_data = pd.DataFrame({'value_labels': value_labels, 'num_labels': [count_labels[value] for value in value_labels]})

import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_axes([0.5, 0.5, 1, 1])
plt.bar(observe_data.value_labels, observe_data.num_labels, color='green')
plt.title('Thống kê số lượng trong tập data')
plt.show()