勤恳冰棍

文章
2
资源
0
加入时间
3年2月3天

pandas-Series常用方法

Series的创建方法通过字典创建dic = {'a':1,'b':2,'c':3,'1':'hello','2':'python','3':[1,2]}s = pd.Series(dic)print(s,type(s))#运行结果1 hello2 python3 [1, 2]a 1b 2c 3dtype: object <class 'pandas.core.series.Series'>通