Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas dataframe drop rows with -ve in column value

df = df[df.line_race != 0]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #dataframe #drop #rows #column
ADD COMMENT
Topic
Name
2+3 =