📜  在 df python 代码示例中选择特定值和对应值

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

代码示例1
#To select rows whose column value equals a scalar, some_value, use ==:df.loc[df['favorite_color'] == 'yellow']