我正在使用Pandas做数据处理,遇到一个问题,它不能获取第一列数据,但可以获取其他列数据,为什么?我该如何解决这个问题,有人能帮上忙吗?_libs.index.IndexEngine.get_loc (pandas/_libs/index.c:5239)()
pandas/_libs/index.pyx in pandas._libs.index.IndexEngine.g
现在,在为DataFrame建立索引之前,我将以这种方式获取列中的值列表...list = list(df['column'])
I‘’ll set_index on the column,I‘’llset_indexon the column。这似乎是徒劳的一步。如何获取索引(包括单个和多个)中的值,并将它们放入列表或元组列表中?