Open cyouh95 opened 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'
So, the simplified way will also return True or False depending on the condition stated? That's good to know.
Alternatively, you could simplify this line:
https://github.com/fabriciodisalvo/biodiversity_codecademy/blob/8cdccdb15906229f11a9467d480a1143575dcc57/biodiversity.py#L158
to: