Python 获取系列熊猫的日期

Python 获取系列熊猫的日期,python,pandas,Python,Pandas,如何从上述变量x中获取2006-02-07 00:00:00,该变量是一个pd.Series 我尝试了x.index,但它返回: In[1212]: x Out[1213]: Open 22.551850 High 22.692506 Low 21.989226 Close 22.036111 Total_Volume 7192.000000 Name: 2006-02-07 00:0

如何从上述变量
x
中获取
2006-02-07 00:00:00
,该变量是一个
pd.Series

我尝试了
x.index
,但它返回:

In[1212]: x
Out[1213]: 
Open              22.551850
High              22.692506
Low               21.989226
Close             22.036111
Total_Volume    7192.000000
Name: 2006-02-07 00:00:00, dtype: float64

看起来您要查找的变量是系列的名称:

Index([u'Open', u'High', u'Low', u'Close', u'Total_Volume'], dtype='object')
x.name