Pandas spits out this warning too aggressively in general, you can see a good discussion here:
How to deal with SettingWithCopyWarning in Pandas?
But if I'm confident that my code works as expected, I just use:
pd.options.mode.chained_assignment = None
at the top of my file. You'll always be able to tell if you're not updating your df because whatever you thought you did won't be there.