pandas基础--1.pandas基础,Series,DataFrame
pandas是numpy的数据分析包
series(一维序列),dataframe(二维表结构)
import pandas as pd
import numpy as np
s1 = pd.Series([4,-7,6,8])#创建Series,索引为默认值
print(s1)
out:
0 4
1 -7
2 6
3 8
dtype: int64
---------------------------------------------------------------------
原创
2021-04-28 21:53:10 ·
184 阅读 ·
2 评论