1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to Polars

Connected

Exercise

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.

Instructions 1/2

undefined XP
  • 1
    • Find and print the rows with the four most expensive vehicles by "price".
  • 2
    • Find and print the rows with the four cheapest vehicles by "price".