I have a dataframe wich name is "data" with 97230 rows and 4 columns. Name one of columns for example is "A". Also i have some variables: "indVec" - bool series with same index as "data"; valVec - vector with some values. sum(indVec)=len(indVal) I am trying to set value for column 'A' in index "indVec" by different ways. But every time i get this message:
"A value is trying to be set on a copy of a slice from a DataFrame
See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy self._setitem_with_indexer(indexer, value)"
Ways, that i am using to set values for 'A' column of dataframe "data":
data.loc[indVec,'A']=valVec
data.ix[indVec,'A']=valVec
data.set_value[indVec,'A']=valVec
data.A[indVec]=valVec
How can I set value for column 'A' without this message?