1.查看某列包含哪些值 df['columnName'].unique() 2.选择DataFrame里面某一列等于某个值的所有行 df.loc[df['columnName']=='the value']