LoslegenKostenlos loslegen

Extreme values in a DataFrame

A luxury car dealership and a budget-focused client have both approached you with opposite needs. One wants to showcase premium EVs while the other needs affordable options.

The dataset is loaded for you in a DataFrame called ev_df.

Diese Übung ist Teil des Kurses

Introduction to Polars

Kurs anzeigen

Interaktive Übung

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

# Get the most expensive 4 vehicles
expensive_df = ev_df.____

print(____)
Code bearbeiten und ausführen