text_html_output_1.png
import pandas as pd

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

data_train = pd.read_csv('../input/indonesiafalsenews/Data_latih.csv')

false_news = data_train[data_train['label'] == 1].sample(frac=1)
true_fact = data_train[data_train['label'] == 0]
df = true_fact.append(false_news[:len(true_fact) + 200])
df