1. 学习
  2. /
  3. 课程
  4. /
  5. Python for R Users

Connected

练习

Groupby

Groupbys are an incredibly powerful and fast way to perform calculations, transformations, and filter your data. It follows the mantra of split-apply-combine where the dataset is split into multiple partitions based on unique values of a variable or variables, a function is applied on each partition separately, and all the results are combined together at the end.

说明 1 / 共 2 个

undefined XP
    1
    2

Calculate the mean 'tip' for each unique value of 'sex'.