1. 学习
  2. /
  3. 课程
  4. /
  5. Working with Categorical Data in Python

Connected

练习

Setting dtypes and saving memory

A colleague of yours is exploring a list of occupations and how they relate to salary. She has given you a list of these occupations, list_of_occupations, and has a few simple questions such as "How many different titles are there?" and "Which position is the most common?".

说明 1 / 共 4 个

undefined XP
    1
    2
    3
    4
  • Create a pandas Series, series1, using the list_of_occupations (do not set the dtype).