1. Học hỏi
  2. /
  3. Khoa Học
  4. /
  5. Introduction to Polars

Connected

Bài tập

What drives EV prices?

In this exercise, you want to understand the relationship between range and price of the vehicles.

For this exercise there is a pre-created lazy query called ev_df that starts with a scan of the CSV followed by a .select() of the brand, model, range, and price columns.

Hướng dẫn 1/3

undefined XP
    1
    2
    3
  • Add a column called "euro_per_range" that is the "price" column divided by the "range" column.
  • Order the output by the "euro_per_range" column.