sking963 / codecademy_bio

Codecademy Biodiversity Project
0 stars 0 forks source link

Alternate way #3

Closed sen1 closed 6 years ago

sen1 commented 6 years ago

https://github.com/sking963/codecademy_bio/blob/96f51da5917bf175cc5b69332a250ff8af173d33/biodiversity.py#L112-L114

The first set of parenthesis is redundant. Here is an alternate easy way:

species['is_protected'] = species.conservation_status != 'No Intervention'
sking963 commented 6 years ago

I'm using parenthesis instead of a line continuation, so I don't think they are 100% redundant but point taken.