EmpezarEmpieza gratis

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.

Este ejercicio forma parte del curso

Scaling and Optimizing Data Pipelines with Polars

Ver curso

Instrucciones del ejercicio

  • Inspect the Parquet file at PARQUET_PATH using the right method.

ejercicio interactivo práctico

Prueba este ejercicio completando este código de ejemplo.

# Inspect the Parquet schema
schema = pl.____(PARQUET_PATH)
print(schema)
Editar y ejecutar código