text_plain_output_1.png
import pandas as pd

datasets_dir = ''
vnrows = None
datasets_dir = '../input/'
df = pd.read_csv(datasets_dir + 'fakenews_preprocessed_35k.csv', nrows=vnrows, encoding='utf-8')

df = df.loc[:, ~df.columns.str.contains('^Unnamed')]

print(df.groupby(['label'])['label'].count())
df = df.sample(frac=1).reset_index(drop=True)