小编Ala*_*lan的帖子

遍历大熊猫系列

我想绕过系列索引

In [44]: type(ed1)
Out[44]: pandas.core.series.Series

In [43]: for _, row  in ed1.iterrows():
...:     print(row.name)
Run Code Online (Sandbox Code Playgroud)

我得到错误:

  AtributeError: 'Series' ojbect has no attribute 'iterrows'
Run Code Online (Sandbox Code Playgroud)

系列是否有类似迭代的方法?非常感谢

python series pandas

8
推荐指数
1
解决办法
8191
查看次数

标签 统计

pandas ×1

python ×1

series ×1