We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Hi, Thanks for all efforts for the great tool!
I've found a strange behavior like this...
In [1]: a = pd.DataFrame([[1,2,3],[4,5,6]], columns=['A','B','C'], index=['X','Y']) In [2]: a Out[2]: A B C X 1 2 3 Y 4 5 6 In [3]: b = a.pop('B') In [4]: a Out[4]: A C X 1 3 Y 4 6 In [5]: b Out[5]: X 2 Y 5 Name: B, dtype: int64 In [6]: b += 1 In [7]: a # Why does a popped column "B" appear again? Out[7]: A C B X 1 3 3 Y 4 6 6 In [8]: b Out[8]: X 3 Y 6 Name: B, dtype: int64
Is it a bug of pandas? This behavior can be avoided by using b = b+1 instead of implace operations.
b = b+1
The text was updated successfully, but these errors were encountered:
I think the cacher is somehow getting updated here.
Sorry, something went wrong.
BUG: Bug in clearing the cache on DataFrame.pop and a subsequent inpl…
2332481
…ace op pandas-dev#10912
Merge pull request #10922 from jreback/pop
75125e1
BUG: Bug in clearing the cache on DataFrame.pop and a subsequent inplace op #10912
Successfully merging a pull request may close this issue.
Hi, Thanks for all efforts for the great tool!
I've found a strange behavior like this...
Is it a bug of pandas?
This behavior can be avoided by using
b = b+1
instead of implace operations.The text was updated successfully, but these errors were encountered: