02 · See it in action
Follow the steps
- Create a DataFrame with known values.
- Inspect types and count missing entries.
- Check whether numbers have consistent units.
- Write down one cleaning decision and its reason.
Worked example
import pandas as pd
df = pd.DataFrame({"hours": [1, 2, None, 4], "score": [42, 55, 61, 78]})
print(df.dtypes)
print(df.isna().sum())
print(df.describe())
Read the example once, then explain each part aloud in your own words. If it includes Python, you can understand the idea first and run the code later in a local Python environment. Code is shown as text; this page does not execute it.
Sign in to save your reading progress.
Sign in