pandas待填坑

1、 cannot do slice indexing on Index with these indexers [3] of type int

df如下:

    

 

当使用callable索引时,报错 cannot do slice indexing on Index with these indexers [3] of type int:

    

 

但是将行索引不设数字时,正常运行不报错:

    

 

原因未知

 

posted on 2021-11-20 17:29  ifran  阅读(501)  评论(0编辑  收藏  举报

导航