Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

subsetting based on column value with list

df.loc[df['col1'].isin([value1, value2, value3, ...])]
Source by www.statology.org #
 
PREVIOUS NEXT
Tagged: #subsetting #based #column #list
ADD COMMENT
Topic
Name
7+5 =