【发布时间】:2017-05-03 11:55:40
【问题描述】:
我是 Python Pandas 的新手。在我的数据框中有一个名为'helpful' 的列,它有一个dtype 'o'。列中的值类似于[2,5]。我需要提取 2 和 5 以便对它们执行操作。谁能建议我如何做到这一点?
【问题讨论】:
-
print (type(df['helpful'].iat[0]))是什么?
标签: python python-3.x pandas dataframe