Menu

Loading the Dataset

Loading the Dataset

After uploading the dataset, we load it into a Pandas DataFrame. This allows us to inspect, clean, analyze, and prepare the data for machine learning.

Code

df = pd.read_csv('fake_reviews_dataset.csv')

Display the First Five Rows

df.head()

Expected Output

review

label

This product is excellent...

CG

Absolutely terrible quality...

OR

Highly recommended...

CG

Worst purchase ever...

OR

Very satisfied with the service...

CG