【发布时间】:2016-12-22 00:12:59
【问题描述】:
不知道为什么我更新到消息建议的 .loc 方法后仍然收到警告?是虚惊一场?
eG.loc[:,'wt']=eG.groupby(['date','BB'])['m'].transform(weightFunction)
试图在数据帧的切片副本上设置值
See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy
if __name__ == '__main__':
【问题讨论】: