Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

drop rows from dataframe based on column value

def filter_rows_by_values(df, col, values):
    return df[~df[col].isin(values)]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #drop #rows #dataframe #based #column
ADD COMMENT
Topic
Name
1+6 =