pandas warning in `science.py:543`
Opened this issue · 0 comments
mmmaat commented
In science.y:543
this warning is issued (will become an error in pandas-3
):
SettingWithCopyWarning: 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
df.drop_duplicates('PERIOD', inplace=True)
I'm using pandas-2.2.3
and python-3.12.7
.