📜  按索引过滤数据帧 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:59.349000             🧑  作者: Mango

代码示例2
import pandas as pd
series= pd.Series({'temp1':12,'temp2':23, 'temp3':31, 'temp4':42})
# assuming you want to print only temp4
print(series[series.index=="temp4"])