EmpezarEmpieza gratis

Estimating DataFrame size

Now check how much memory you saved. The numeric downcasts from the previous exercise have already been applied for you in movies_optimized. The original size is printed so you can compare it against the optimized one.

Este ejercicio forma parte del curso

Scaling and Optimizing Data Pipelines with Polars

Ver curso

Instrucciones del ejercicio

  • Use the right method on movies_optimized to estimate its size in megabytes.

ejercicio interactivo práctico

Prueba este ejercicio completando este código de ejemplo.

# Get the optimized size
after_size_mb = movies_optimized.____("____")
print(after_size_mb)
Editar y ejecutar código