*Hi,* *I trying to create a new column names "BUY_SELL" in a dataframe "R2"* *Syntax : R2["BUY_SELL"]="SELL"*
*No error while executing the above line alone but when executing the hole python script below message is appearing* *E:\BIBEESH\PYTHON\NSE\Basan_Version_1.ipy:295: 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: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy R2["BUY_SELL"]="SELL"* *Even I tried iterate using for loop, still the msg persists.* *is this a problem or ignorable?* *Regards* *Bibeesh* -- You received this message because you are subscribed to the Google Groups "spyder" group. To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/spyderlib/d75caae6-6daf-4a6b-9f09-5799a47d0623o%40googlegroups.com.