df = DataFrame(np.random.randn(7,3))
df.ix[:5,1] = NA
# 报错 AttributeError: 'DataFrame' object has no attribute 'ix'
# 改为
df.iloc[:5,1] = NA
df = DataFrame(np.random.randn(7,3))
df.ix[:5,1] = NA
# 报错 AttributeError: 'DataFrame' object has no attribute 'ix'
# 改为
df.iloc[:5,1] = NA
相关文章: