Open sen1 opened 6 years ago
https://github.com/edebroux/intro-data-capstone-musclehub/blob/6ad8ddd4072ae81cf67414d0ddd68e05383fe39e/Capstone%20Project%202%20De%20Broux/biodiversity.py#L134
I would add line breaks to increase code readability. It could be your formatting got messed up while converting jupyter notebook to .py file. Anyway, it is a minor comment. Here is how I would do it:
protection_counts = species.groupby('conservation_status')\ .scientific_name.nunique().reset_index()\ .sort_values(by='scientific_name')
https://github.com/edebroux/intro-data-capstone-musclehub/blob/6ad8ddd4072ae81cf67414d0ddd68e05383fe39e/Capstone%20Project%202%20De%20Broux/biodiversity.py#L134
I would add line breaks to increase code readability. It could be your formatting got messed up while converting jupyter notebook to .py file. Anyway, it is a minor comment. Here is how I would do it: