SettingWithCopyWarning:
A value is trying to be set on a copy of a slice from aDataFrame.
Try using .loc[row_indexer,col_indexer]= value instead
See the caveats in the documentation:http://Pandas.pydata.org/Pandas-docs/stable/indexinghtml#indexing-view-versus-copy
Pandas避免遇到SettingwithCopyWarning 问题SettingWithCopyWarning: A value is trying to be set on a copy of a slice from aDataFrame.Try using .loc[row_indexer,col_indexer] = value insteadSee the caveats in the documentation:http://Pandas.pydata.org/Pandas-docs