df = DataFrame(np.random.randn(7,3))
df.ix[:5,1] = NA

# 报错 AttributeError: 'DataFrame' object has no attribute 'ix'
# 改为
df.iloc[:5,1] = NA

 

相关文章:

  • 2021-09-15
  • 2021-12-07
  • 2021-12-14
  • 2021-06-06
  • 2021-07-27
  • 2021-06-21
  • 2021-08-31
  • 2021-12-04
猜你喜欢
  • 2021-05-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-23
相关资源
相似解决方案