1. Học hỏi
  2. /
  3. Khoa Học
  4. /
  5. Scaling and Optimizing Data Pipelines with Polars

Connected

Bài tập

Renaming country fields

The struct fields code and name are too generic for reports. Rename them to country_code and country_name first, then unnest.

You're still working with the same movies DataFrame.

Hướng dẫn

100 XP
  • Use the right method on the struct to rename its fields.
  • Name them country_code and country_name, in that order.