We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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!
The text was updated successfully, but these errors were encountered:
Rewrite the line as:
order.loc[order.JourneyType == 'Domestic', 'TaxPercentage'] = 0
I hope that works!!
Sorry, something went wrong.
AttributeError: 'DataFrame' object has no attribute 'JourneyType' After making those changes this is the error
How to solve this problem? thanks
No branches or pull requests
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!
The text was updated successfully, but these errors were encountered: