Super Beginner Starter Code

Create a new Jupyter Notebook and run these cells one by one:

Cell 1:

Python

print("Hello World! I am learning Python.")

Cell 2:

Python

import pandas as pd
df = pd.read_csv('city-weather.csv')
print("Success! File loaded.")
print("Number of rows:", df.shape[0])
print("Column names:", df.columns.tolist())

Cell 3:

Python

print(df.head(10))        # First 10 rows
print("\nWeather types:")
print(df['weather_category'].value_counts())

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top