Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas filter

#To select rows whose column value is in list 
years = [1952, 2007]
gapminder.year.isin(years)
Source by cmdlinetips.com #
 
PREVIOUS NEXT
Tagged: #pandas #filter
ADD COMMENT
Topic
Name
7+2 =