我有一个名为 Names
的系列,如下所示:
0 abc
1 def
2 ghi
Name: Names, dtype: object
我想删除该系列的名称。我希望该系列看起来像这样:
0 abc
1 def
2 ghi
dtype: object
我尝试通过这样做删除名称:
names.name = ''
但它仍然有一个空名称:
0 abc
1 def
2 ghi
Name: , dtype: object
如何去掉这个名字?提前致谢
最佳答案
关于python - 删除 pandas 系列名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70873853/