Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas combine bool columns

d.any(axis=1) returns T if any of the val in row are T
d.all(axis=1) returns T only if all vals in row are T
 
PREVIOUS NEXT
Tagged: #pandas #combine #bool #columns
ADD COMMENT
Topic
Name
9+1 =