Skip to content
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

SettingWithCopyWarning after 28th cell #2

Open
rebeccabilbro opened this issue Oct 17, 2015 · 0 comments
Open

SettingWithCopyWarning after 28th cell #2

rebeccabilbro opened this issue Oct 17, 2015 · 0 comments

Comments

@rebeccabilbro
Copy link

After running the 28th cell,
top_mean_ratings['diff'] = abs(top_mean_ratings['F'] - top_mean_ratings['M'])

I get this warning:

SettingWithCopyWarning:
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead
See the the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy
if name == 'main':

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant