tylerponticelli / intro-data-capstone-biodiversity

0 stars 0 forks source link

Redundant comparison #2

Open sen1 opened 6 years ago

sen1 commented 6 years ago

https://github.com/tylerponticelli/intro-data-capstone-biodiversity/blob/3b4ea4fbd6679feba67bfeedb3ac77e0f110c9f4/codeacademy/readme.txt#L116

species.is_sheep is a boolean column. So by == True does not make sense. I would do:

 species_is_sheep = species[species.is_sheep]