1. 学习
  2. /
  3. 课程
  4. /
  5. Introduction to Polars

Connected

练习

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.

说明 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.