title: Python :SettingWithCopyWarning
body: <p>A warning keep appear on the following code, why and how to solve it? What's wrong with it?</p>
  <p>below is the error:</p>
  <pre><code>\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(
  </code></pre>
  <p>below is the code:</p>
  <pre><code>for tpepn, alopn in tine_convertion.items():
      wip_df['items'].replace({tpepn:alopn}, inplace=True)
  </code></pre>