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

Connected

Exercise

Renaming and dropping columns

When you present results to your colleagues you see that they are confused about what some data represents and overwhelmed by the amount of data presented. You want to rename some columns to ensure your colleagues understand what each column refers to, while dropping some columns that are not relevant.

Instructions

100 XP
  • Update the column names with the column name mappings in the renamed_columns dict.
  • Drop the "top_speed" and "charge_rate" columns from the DataFrame.