📜  python 使用两个条件删除行 - Python 代码示例

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

代码示例1
df_new = [df[(df['col_1'] == 1.0) & (df['col_2'] == 0.0)].index]
df.drop(df_new,axis = 0 ,inplace= True)