pandas.groupby().rank()用法详解

  • pandas.DataFrame.groupby()

Group DataFrame using a mapper or by a Series of columns.

A groupby operation involves some combination of splitting the object, applying a function, and combining the results. This can be used to group large amounts of data and compute operations on these groups.

  • Parameters
  1. by : mapping, function, label, or list of labes

    Used to determine the groups for the groupby.

    If by is a function, it’s called on each value of the object’s index.

    If a dict or Series is passed, the Series or dict VALUES will be used to determine the groups.

    If an ndarray is passed, the values are used as-is determine the groups.

    A label or list of labels may be passed to group by the columns in self.

  2. axis

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值