Skip to content

SettingwithCopyWarning #1

@Salocinz

Description

@Salocinz

Hey,

I have tried to compile your code but there is the following error:

C:/Users/admin/Desktop/test/unbenannt4_alt.py:252: SettingWithCopyWarning:
A value is trying to be set on a copy of a slice from a DataFrame

See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
order['Tax Percentage'][order['Journey Type'] == 'Domestic'] = 0
C:/Users/admin/Desktop/test/unbenannt4_alt.py:63: SettingWithCopyWarning:
A value is trying to be set on a copy of a slice from a DataFrame

See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
route['Warehouse Cost'][route['Warehouse Cost'].isnull()] = bigM
C:/Users/admin/Desktop/test/unbenannt4_alt.py:268: SettingWithCopyWarning:
A value is trying to be set on a copy of a slice from a DataFrame

See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
m.set_param(route, order)

Can you help me solve this?

Thanks a lot in advance!

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