Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

or condition in pandas

df2 = df[(df.a != -1) | (df.b != -1)]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #condition #pandas
ADD COMMENT
Topic
Name
2+2 =