
This morning you learned the exploration ritual on a dataset we walked through together. Now youβll use it on one nobody has explained to you.
Work in pairs, in one shared notebook, taking turns at the keyboard. Swap every time you finish a numbered task. The person not typing reads the output aloud and says what they think it means before you move on.
You have 45 minutes.
The data
US National Park Service visitor records:
https://eds-217-essential-python.github.io/data/national_parks.csv
Thatβs all youβre getting. No data dictionary, no column descriptions. Figuring out whatβs in there is the exercise.
Setup
Create a notebook named Colab_2C_Unfamiliar_Data.ipynb, with both partnersβ names in the title cell, then read the file in.
Your goal
By the end of the session, produce five factual claims about this dataset, each written in a markdown cell, each immediately preceded by the code cell that proves it.
A claim is factual if a skeptical reader could check it against your output. Compare:
β βThe dataset has a lot of parks in it.β
β βThe dataset contains 4,743 rows describing units of type
National Park, out of 21,560 rows total.β
At least one of your five claims must be about a problem with the data.
Working through it
Donβt try to write claims immediately. Explore first, then decide whatβs worth claiming.
Size it up. How many rows and columns? What are the column names?
Check the types. Run
.dtypes. At least one column has a type you would not predict from its name. Find it, and then work out why by looking at whatβs actually in that column. This is the single most important thing in this dataset.Run the health check. Which columns have missing values, and how many?
Count the categories. Use
.value_counts()on at least three text columns. Which columns are informative? Is any of them close to a constant?Summarize the numbers. Run
.describe(). One of the numeric summaries is distorted. Say which, and connect it to what you found in step 2.Make a working subset. Build a list of the columns youβd actually keep, select them into a smaller DataFrame, and rename at least one column with a dictionary.
Write your five claims. Each one: a code cell, then a markdown cell stating the claim in a full sentence with the specific numbers in it.
Ask the question a different way. If a column of years isnβt stored as a number, then something in it isnβt a year. .value_counts() will show you what.
Write a sixth claim about something youβd need to know before using this data to answer βwhich national park is the most visited?β You do not need to answer that question. We build the tools for it over the next three days. Just say what would have to be true first.
Wrap-up
Weβll hear two or three pairs read out their problem claim. Be ready to say how you found it, not just what it was.