I want to replace the values in a column by a calulation (which is a multiplcation of comlun values). like this:
df.loc[:, 'cfit'] = df['cfit'] * df['risk_nr']
I get the following message: 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 the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy self.obj[item] = s
Is this a correct or false warning of pandas ? Thnx