Python 打印数据帧的行

Python 打印数据帧的行,python,pandas,dataframe,Python,Pandas,Dataframe,当我打印我的数据帧时,total,这是打印的: TimeTaken StartLocation ? 3430.0 bathroom 17144.0 ... ... 我想要一系列的位置,比如: ? bathroom ... 我该怎么做呢?多亏了。可通过以下方式完成: total.index 这看起来像是索引总计。索引?

当我打印我的数据帧时,
total
,这是打印的:

               TimeTaken
StartLocation           
?                 3430.0
bathroom         17144.0
...                  ... 
我想要一系列的位置,比如:

? 
bathroom
...
我该怎么做呢?

多亏了。可通过以下方式完成:

total.index

这看起来像是索引<代码>总计。索引?