import pandas as pd import numpy as np series1 = pd.Series([2.8, 3.01, 8.99, 8.58, 5.18]) series1 0 2.80 1 3.01 2 8.99 3 8.58 4 5.18 dtype: float64 # 序列结构 type(series1) pandas.core.series.Series series2 = pd.Series([2.8, 3.01, 8.99, 8.58, 5.18], index=['a', 'b', 'c', 'd', 'e'],