Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/294.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 从panda系列中卸下收割台_Python_Pandas - Fatal编程技术网

Python 从panda系列中卸下收割台

Python 从panda系列中卸下收割台,python,pandas,Python,Pandas,我得到的系列如下 p = pd.Series(y['saving'].values, index=y['date']) print(p) date 2019-01-01 29157 2019-02-01 27414 2019-03-01 32655 2019-04-01 55164 2019-05-01 98440 2019-06-01 109610 但我想将其转换为(不带日期列标题),但保留原始格式(pandas.core.series.ser

我得到的系列如下

p = pd.Series(y['saving'].values, index=y['date'])
print(p)

date
2019-01-01     29157
2019-02-01     27414
2019-03-01     32655
2019-04-01     55164
2019-05-01     98440
2019-06-01    109610
但我想将其转换为(不带日期列标题),但保留原始格式(pandas.core.series.series)


那么如何删除标题?

索引的
name
属性执行以下操作:

p.index.name = ''

索引的
name
属性执行以下操作:

p.index.name = ''
p = pd.Series(y['saving'].values, index=y['date'].values)