How to fix SettingWithCopyWarning in Pandas: A value is trying to be set on a copy