geoman1217 / intro-data-capstone-biodiversity

0 stars 0 forks source link

Consider breaking up long lines to improve readability #1

Open karl-project-review opened 6 years ago

karl-project-review commented 6 years ago

https://github.com/geoman1217/intro-data-capstone-biodiversity/blob/9d353a78fb389ac52a43521b136882af36ff0ba7/Biodiversity%20Capstone/biodiversity.py#L123 In order to make scripts easier to read in code editors, consider breaking up long lines like this using the \ character. For example:

protection_counts = species.groupby('conservation_status')\
     .scientific_name.count().reset_index()\
     .sort_values(by='scientific_name')
geoman1217 commented 6 years ago

This is a habit to prevent errors on my part but is something I will work on in the future. Thanks for the advise.