Closed nxlogics closed 4 months ago
The groupby method does not allow .rank() usage. This can be mimicked by using scipy.stats.rankdata() function.
groupby
.rank()
scipy.stats.rankdata()
This cannot be done with a group by, as frame.groupby(...).agg({"feature" : [sum, pdw.rank()]}) does not makes any sense. The rank has to be outside the scope of the grouping clause.
frame.groupby(...).agg({"feature" : [sum, pdw.rank()]})
What is the New Feature/Enhancement?
The
groupby
method does not allow.rank()
usage. This can be mimicked by usingscipy.stats.rankdata()
function.Code of Conduct