Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

dataframe select entries that are in a list

df = pd.DataFrame({'A': [5,6,3,4], 'B': [1,2,3,5]})
df[df['A'].isin([3, 6])]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #dataframe #select #entries #list
ADD COMMENT
Topic
Name
6+2 =