from pandas import Series, DataFrame # Series接收list或dict作为一维数据 #两个属性:values, index #① s1 = Series([4,7,-5,3]) print(s1.values) #值 print(s1.index) #序列号 s1.index = ['a','b','c','d'] print(s1) #② s2 = Series({'Ohio': 35000, 'Texas': 71000, 'Oregon': 160…