索引器错误:索引149118345超出了大小为1491089723的轴0的界限

2024-10-05 12:17:41 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一个dataframe,df,有646585行和3列,看起来像:

index      inp       aco         count                
  0       2.3.6.   dp-ptp-a2f   22000
  1       2.3.12.  ft-ptp-a2f   21300
  2       2.5.9.   dp-ptp-a2f   21010
  3       0.8.0.   dp-ptp-a4f   20000
  4       2.3.6.   ft-ptp-a2f   19000               
  5       2.3.6.   ff-ptp-a2f   18500        
  ...                            ...
  ...                            ...   
  ...                            ...                 

我试着用代码旋转数据帧:

^{pr2}$

但我有

IndexError: index 1491188345 is out of bounds for axis 0 with size 1491089723

Tags: 数据代码dataframedfindexcountdpff

热门问题