text_plain_output_1.png image_output_1.png
import pandas as pd

df_reviews = pd.read_csv('/kaggle/input/arabic-100k-reviews/ar_reviews_100k.tsv', delimiter='\t')

label_mapping = {'Positive': 1, 'Negative': 0}
df_reviews = df_reviews[df_reviews.label != 'Mixed']
print(df_reviews.shape)
df_reviews.label = df_reviews.label.map(label_mapping)
df_reviews.label.value_counts()