Answers for "pandas filter columns with IN"

0

pandas filter columns with IN

#To select rows whose column value is in list 
years = [1952, 2007]
gapminder.year.isin(years)
Posted by: Guest on September-16-2021

Code answers related to "pandas filter columns with IN"

Python Answers by Framework

Browse Popular Code Answers by Language