Skip to content

Got warning on Part 6: SettingWithCopyWarning #16

@huuquynh

Description

@huuquynh

This warning is not error, but I think it should be better if double check again the code.

A value is trying to be set on a copy of a slice from a DataFrame

See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy

Although, this warning will be off if set_option to None:

pd.set_option('mode.chained_assignment', None)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions