pandas系列和单列DataFrame有什么区别? [英] What is the difference between a pandas Series and a single-column DataFrame?
本文介绍了pandas系列和单列DataFrame有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
为什么熊猫区分Series
和单列DataFrame
?
换句话说:Series
类存在的原因是什么?
Why does pandas make a distinction between a Series
and a single-column DataFrame
?
In other words: what is the reason of existence of the Series
class?
我主要使用带有datetime索引的时间序列,也许这有助于设置上下文.
I'm mainly using time series with datetime index, maybe that helps to set the context.
推荐答案
查看全文