Skip to content

CLN/ASV: remove downcast param (deprecated) from frame_methods.Interpolate #54225

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 1 commit into from
Jul 24, 2023
Merged
Changes from all commits
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
13 changes: 5 additions & 8 deletions asv_bench/benchmarks/frame_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,10 +565,7 @@ def time_frame_object_unequal(self):


class Interpolate:
params = [None, "infer"]
param_names = ["downcast"]

def setup(self, downcast):
def setup(self):
N = 10000
# this is the worst case, where every column has NaNs.
arr = np.random.randn(N, 100)
Expand All @@ -589,11 +586,11 @@ def setup(self, downcast):
self.df2.loc[1::5, "A"] = np.nan
self.df2.loc[1::5, "C"] = np.nan

def time_interpolate(self, downcast):
self.df.interpolate(downcast=downcast)
def time_interpolate(self):
self.df.interpolate()

def time_interpolate_some_good(self, downcast):
self.df2.interpolate(downcast=downcast)
def time_interpolate_some_good(self):
self.df2.interpolate()


class Shift:
Expand Down