1. 학습
  2. /
  3. 강의
  4. /
  5. Scaling and Optimizing Data Pipelines with Polars

Connected

연습 문제

Creating an Object dtype

For an ad-hoc text exploration, the team wants each movie's title as a Python set of lowercase words. A set isn't a native Polars dtype, so store it in a column of dtype pl.Object.

The DataFrame movies is available, and the helper title_to_word_set(title) is already defined and returns a Python set of lowercase words from a title.

지침

100 XP
  • Run title_to_word_set on each movie_title and store the returned Python sets in a new column.
  • Alias the new column as title_word_set.