Closed bleearmstrong closed 7 years ago
There was a python2/3 compatibility issue with how parameters are passed. col
is now a keyword (still defaults to the last column)
usage is now like df >> top_n(col=X.x, n=5)
Cool thank you. Merging into develop.
Adds top_n functionality. eg.
df >> top_n(X.x, n=5 [,ascending=True])
n
must be specified; likedplyr
, if no column is specified, then the last column is used as a default May return more than n in the case of ties