Obtendo o aviso SettingWithCopyWarning mesmo depois de usar .loc em pandas [duplicado]

Esta pergunta já tem uma resposta aqui:

Pandas ainda estão recebendo o SettingWithCopyWarning mesmo depois de usar o .loc 2 respostas
df_masked.loc[:, col] = df_masked.groupby([df_masked.index.month, df_masked.index.day])[col].\
            transform(lambda y: y.fillna(y.median()))

Mesmo depois de usar um .loc, recebo o foll. erro, como faço para corrigir isso?

Anaconda\lib\site-packages\pandas\core\indexing.py:476: SettingWithCopyWarning: 
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

See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy
  self.obj[item] = s

questionAnswers(1)

yourAnswerToTheQuestion