A warning keep appear on the following code, why and how to solve it? What's wrong with it?
below is the error:
\pandas\core\series.py:4509: 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
return super().replace(
below is the code:
for tpepn, alopn in tine_convertion.items():
wip_df['items'].replace({tpepn:alopn}, inplace=True)