AttributeError: 'DataFrame' object has no attribute 'ix'
df = DataFrame(np.random.randn(7,3))
df.ix[:5,1] = NA
# 报错 AttributeError: 'DataFrame' object has no attribute 'ix'
# 改为
df.iloc[:5,1] = NA
本文来自博客园,作者:OTAKU_nicole,转载请注明原文链接:https://www.cnblogs.com/nicole-zhang/p/14401141.html