-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
BUG: fix non-existent variable in NDFrame.interpolate #29142
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
Changes from 9 commits
0259cf5
66a1b1a
b63920b
e1191b6
f8feeb9
7331d2d
0a4067b
8231559
499147a
d2bb8a0
aae361d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -398,6 +398,7 @@ def test_fillna_categorical_nan(self): | |
|
||
result = df.cats.fillna(np.nan) | ||
tm.assert_series_equal(result, df.cats) | ||
|
||
result = df.vals.fillna(np.nan) | ||
tm.assert_series_equal(result, df.vals) | ||
|
||
|
@@ -872,10 +873,22 @@ def test_interp_rowwise(self): | |
result = df.interpolate(axis=1, method="values") | ||
assert_frame_equal(result, expected) | ||
|
||
# GH 29142: test axis names | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. rather than adding tests like this, can you create a new test function and paramterize on the axis There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've added a new parametrized function in the latest commit There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. pytest is returning with an uncaught warning in the same file from a call to df.median(). Should I add
|
||
result = df.interpolate(axis="columns", method="values") | ||
assert_frame_equal(result, expected) | ||
|
||
result = df.interpolate(axis=0) | ||
expected = df.interpolate() | ||
assert_frame_equal(result, expected) | ||
|
||
# GH 29142: test axis names | ||
result = df.interpolate(axis="rows", method="values") | ||
assert_frame_equal(result, expected) | ||
|
||
# GH 29142: test axis names | ||
result = df.interpolate(axis="index", method="values") | ||
assert_frame_equal(result, expected) | ||
|
||
def test_rowwise_alt(self): | ||
df = DataFrame( | ||
{ | ||
|
Uh oh!
There was an error while loading. Please reload this page.