Skip to content

BUG: GH10395 bug in DataFrame.interpolate with axis=1 and inplace=True #10400

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
Jun 23, 2015

Conversation

kawochen
Copy link
Contributor

To close #10395.

inplace=inplace,
downcast=downcast,
**kwargs
)
if inplace:
if axis == 1:
self._update_inplace(new_data)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change to is more obvious what is going on.

if axis == 1:
    new_data = self._constructor(new_data).T._data
self._update_inplace(new_data)

@jreback jreback added Bug Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate labels Jun 22, 2015
@jreback jreback added this to the 0.17.0 milestone Jun 22, 2015
@kawochen
Copy link
Contributor Author

@jreback tests are green

jreback added a commit that referenced this pull request Jun 23, 2015
BUG: GH10395 bug in DataFrame.interpolate with axis=1 and inplace=True
@jreback jreback merged commit 4220d47 into pandas-dev:master Jun 23, 2015
@jreback
Copy link
Contributor

jreback commented Jun 23, 2015

@kawochen thanks! another nice fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: interpolate() row-by-row doesn't work when setting inplace=True
2 participants