点击运行
import pandas as pd s = pd.Series([1,2,3,4,5],index = ['a','b','c','d','e']) #检索多个元素 print(s[['a','c','d']])
运行结果 :
正在执行...