仅使用“x”和“y”中的数据创建序列:import pandas as pdcalories = {"x": 20, "y": 80, "z": 90}myvar = pd.Series(calories, index = ["x", "y"])print(myvar)执行结果:x 20y 80dtype: int64