Do you understand the purpose of the (new) warning message? I suggest doing a web search of:
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead
Then reading the explanations on the Stack Overflow site (and within the pandas doc itself). This warning is about ambiguities in your code that might not work the way you think it will work. Using .loc is guaranteed to work the same way every time.
In your situation, the warning may or may not be a false positive... Reading the documentation and the comments from others will help you to determine which... It will also make you a better programmer as you learn to troubleshoot issues on your own. This is a process that every programmer goes through at some point in their career. The sooner that you learn how to do this, the faster your skills will develop.
Regards,
Jim