今天遇到series,于是从官网摘来
首先,什么是series?
官网定义Series is a one-dimensional labeled array capable of holding any data type
其次,怎么创建一个series?
- From ndarray
- From dict
- From scalar value
Series 类似n维数组
A key difference between Series and ndarray is that operations between Series automatically align the data based on label. Thus, you can write computations without giving consideration to whether the Series involved have the same labels.
series又类似字典
name属性
Series can also have a name attribute: