LoslegenKostenlos loslegen

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.

Diese Übung ist Teil des Kurses

Introduction to Polars

Kurs anzeigen

Interaktive Übung

Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.

# Select the columns with a lazy query
ev_df = ____("electric_vehicles.csv").____

# Execute the lazy query
print(____)
Code bearbeiten und ausführen