1. Uczyć się
  2. /
  3. Courses
  4. /
  5. Introduction to Polars

Connected

Exercise

Creating a Lazy Query

You are asked to provide details on the range of electric vehicles for each model for a pre-sales opportunity. As you only need a subset of columns from the CSV you want to write this as a lazy query to take advantage of query optimization.

Instrukcje 1 / 2

undefined XP
    1
    2
  • Create a lazy query from "electric_vehicles.csv" that selects the "brand","model","range" columns.
  • Execute the lazy query to return a DataFrame.