Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

drop rows with certain values pandas

#to drop rows based on certain condition in a column
import pandas as pd

df = df[df['column']!=1]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #drop #rows #values #pandas
ADD COMMENT
Topic
Name
1+2 =