fabriciodisalvo / biodiversity_codecademy

BIodiversity Capstone Project for codecademy.com
0 stars 0 forks source link

Comparative operation on rows #1

Open cyouh95 opened 6 years ago

cyouh95 commented 6 years ago

Alternatively, you could simplify this line:

https://github.com/fabriciodisalvo/biodiversity_codecademy/blob/8cdccdb15906229f11a9467d480a1143575dcc57/biodiversity.py#L158

to:

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

So, the simplified way will also return True or False depending on the condition stated? That's good to know.