DIUx-xView / xview3-reference

Reference data processing code and model for the xView3 prize challenge.
Other
45 stars 28 forks source link

pandas indexing.py Settings SettingWithCopyWarning #17

Open A-n-o-r-a-k opened 12 months ago

A-n-o-r-a-k commented 12 months ago

When refactoring the reference Jupiter notebook I am receiving the following error:

home/q/anaconda3/envs/xview3/lib/python3.9/site-packages/pandas/core/indexing.py:1597: 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 caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy self.obj[key] = value

It does not appear to crash the implementation at this point in the notebook. I have not found a working solution to fix this warning.