Welcome to Foundation of Data Science Laboratory
Welcome to Foundation of Data Science Laboratory
2. Use Python to import the CSV file into a DataFrame.
import pandas as pd
# Load the LIAR dataset CSV file into a DataFrame
df = pd.read_csv('liar_dataset.csv')
# Display the first 5 rows of the DataFrame
print(df.head())