本人小菜鸟一枚,在pycharm 2.7里面运行这句出线了错误
trainData['int_rate_clean'] = trainData['int_rate'].map(lambda x: str(x.replace("%","")))
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- ... ng-view-versus-copy
trainData['int_rate_clean'] = trainData['int_rate'].map(lambda x: str(x.replace("%","")))
不知道什么原因,有人知道吗?感激不尽