转自
# 直接传入一组数据 from pandas import Series, DataFrame obj = Series([4, 2, 3]) obj
0 4 1 2 2 3 dtype: int64