Skip to content

REF/POC: Share groupby/series algos (rank) #38744

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
Jan 1, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
WIP
  • Loading branch information
mzeitlin11 committed Dec 27, 2020
commit 96956058b7b2330a9872508f57713c5f07a1b8f6
13 changes: 13 additions & 0 deletions asv_bench/benchmarks/series_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,5 +348,18 @@ def setup(self, func, N, dtype):
def time_func(self, func, N, dtype):
self.func()

class Rank:

param_names = ["dtype"]
params = [
["int", "uint", "float", "object"],
]

def setup(self, dtype):
self.s = Series(np.random.randint(0, 1000, size=100000), dtype=dtype)

def time_frame_quantile(self, dtype):
self.s.rank()


from .pandas_vb_common import setup # noqa: F401 isort:skip
Loading