Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python drop rows with two conditions

df_new = [df[(df['col_1'] == 1.0) & (df['col_2'] == 0.0)].index]
df.drop(df_new,axis = 0 ,inplace= True)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #drop #rows #conditions
ADD COMMENT
Topic
Name
6+8 =