Block 22: Loading & Inspecting Data
Read real datasets from CSV and other formats.
Concepts
- pd.read_csv(), pd.read_excel(), pd.read_json()
- head(), tail(), sample()
- columns, index, shape
- Basic info and describe
Code Examples
See exercise below.
Exercise
Load the Iris CSV dataset, print head(5), shape, and column dtypes. Check how many rows have a sepal_length > 5.0.
Homework
Find one open dataset on Kaggle or GitHub, load it, and write 3 observations from describe(). Tuesday