就是怎么提取出来id=1时,S1和S2列的值,因为id后面还有等于其他的数据
不知道下面代码能否满足你的要求
import pandas as pd data = pd.DataFrame() select_data = data[data['id']==1][['s1','s2']]