Menu

Loading the Dataset

Loading the Dataset

The weather dataset is stored in CSV format.

Code

df = pd.read_csv("weatherHistory.csv")

Explanation

The read_csv() function reads the CSV file and stores it inside a Pandas DataFrame.

A DataFrame is a table-like structure that allows us to organize and analyze data efficiently.

Once loaded, all weather observations become available for analysis.