Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas find value in any column

#This syntax shows how to select all rows of the DataFrame that contain the values 25, 9
#in any of the columns:
df[df.isin([25, 9]).any(axis=1)]
Source by www.statology.org #
 
PREVIOUS NEXT
Tagged: #pandas #find #column
ADD COMMENT
Topic
Name
8+2 =