Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas filter

>continents = ['Asia','Africa', 'Americas', 'Europe']
>gapminder_Ocean = gapminder[~gapminder.continent.isin(continents)]
>gapminder_Ocean.shape 
(24,6)
Source by cmdlinetips.com #
 
PREVIOUS NEXT
Tagged: #pandas #filter
ADD COMMENT
Topic
Name
1+8 =