Menu

Understanding the Dataset

Understanding the Dataset

Before preprocessing the data, it is important to understand its structure. We will inspect the dimensions, data types, and basic information to identify potential issues such as missing values or incorrect formats.

Check Dataset Shape

df.shape

Expected Output

(40432, 2)

This indicates the dataset contains 40,432 rows and 2 columns.

Display Column Names

df.columns

View Dataset Information

df.info()

Display Statistical Summary

df.describe(include='all')

Expected Output

A summary table showing counts, unique values, top values, and frequency for the text columns.