Попробуйте использовать .loc [row_indexer, col_indexer] = значение вместо этого
import pandas as pd
pd.options.mode.chained_assignment = None # default='warn'
# This will stop showing this warning
# Alternatively you can use .loc as suggested by the message
Benja