-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Boolean indexer assginment error #6039
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
Comments
This is chained indexing with assignment http://pandas.pydata.org/pandas-docs/dev/indexing.html#indexing-view-versus-copy in any event this is much faster, and will work in 0.13.
|
#6031 fixed this |
Thanks! |
@jreback import pandas as pd
dfc = pd.DataFrame({'a':['aaa','bbb','ccc'],'b':[1,2,3]})
dfc = dfc[dfc['b']>=2]
dfc.b +=1 |
To set, ALWAYS use What you show above does give the warning in 0.13 (I might be able to eliminate it for 0.13.1, but this is quite tricky). Almost all objects in pandas return copies, setting (and using
You could also:
|
I'm new to Python and Pandas. Can someone help me understand the following. After installing pandas 0.13.0, the following code will crash python. I tested it in pandas 0.12.0, and it's OK.
Thank you!
Here're the current packages versions:
The text was updated successfully, but these errors were encountered: