1. เรียนรู้
  2. /
  3. Courses
  4. /
  5. Introduction to Polars

Connected

Exercises

Creating new columns with a suffix

You are asked by a client how each vehicle ranks relative to the others in terms of their performance characteristics such as their acceleration or range.

คำแนะนำ

100 XP
  • Use selectors to select all of the string and float columns in a new DataFrame rank_df.
  • Add new columns with the rank of the float columns with the suffix "_rank" added to the column name.