Inspecting a Parquet schema
The Seattle library team has converted their classroom checkouts file to Parquet for faster analytics. Before they build any new reports, they want to confirm the column names and dtypes inside the file without loading any data.
polars is loaded as pl, and the path to the Parquet file is in PARQUET_PATH.
This exercise is part of the course
Scaling and Optimizing Data Pipelines with Polars
Exercise instructions
- Inspect the Parquet file at
PARQUET_PATHusing the right method.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Inspect the Parquet schema
schema = pl.____(PARQUET_PATH)
print(schema)