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.
Deze oefening maakt deel uit van de cursus
Scaling and Optimizing Data Pipelines with Polars
Oefeninstructies
- Inspect the Parquet file at
PARQUET_PATHusing the right method.
Interactieve oefening met praktijkervaring
Probeer deze oefening door deze voorbeeldcode aan te vullen.
# Inspect the Parquet schema
schema = pl.____(PARQUET_PATH)
print(schema)