pandas基于numpy,常与matplotlib共同使用
pd.Series(range(20))
Out[15]:
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
10 10
11 11
12 12
13 13
14 14
15 15
16 16
17 17
18 18
19 19
dtype: int64
pandas库主要提供两种数据类型:Series and Dataframe
Series represents one-dimensional data type while Dataframe represents two-dimensional and multi-dimensional data type.
various operation can be done through above-mentioned data type including basic operation, arithmetic operation, characteristic op, relate op.
Series in Pandas








搜索index要加''

Series对齐操作

dataframe类型
Dataframe由公用相同索引的一组列构成(是一个表格)




这篇博客介绍了Pandas库中的核心数据类型——Series和DataFrame。Series是一维数据结构,而DataFrame是二维表格型数据结构,常与numpy和matplotlib结合使用。文中详细讲解了如何创建Series,以及Series的对齐操作。同时,Dataframe的构成和基本操作也被提及,包括数据操作和特性。通过实例展示了这两种数据类型的常见操作,为数据分析提供了基础工具。
2644

被折叠的 条评论
为什么被折叠?



