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

Connected

Exercise

Adding a new column

Your clients are concerned that electric vehicles will take hours to fully charge so you want to add a new column that shows how long it takes to fully charge each vehicle in hours. You can do this by dividing the range column (in kilometers) by the charge rate column (in kilometers of range that can be charged per hour).

Instructions 1/3

undefined XP
    1
    2
    3
  • Divide "range" by "charge_rate" using polar expressions.