PBrockmann / PANGAEA_Scraping

web scraping from the OA-ICC PANGAEA
MIT License
1 stars 2 forks source link

In the histogrammes, sort keywords by total numbers #2

Closed Yan-yang35 closed 2 years ago

Yan-yang35 commented 2 years ago

Hi Patrick,

Could we sort the keywords by total numbers rather than alphabetical order?Like the examples shown in Examples.pptx If it could be done, there will be no need to rename: 'North Atlantic': 'Atlantic North', 'South Atlantic': 'Atlantic South', 'North Pacific': 'Pacific North', 'South Pacific': 'Pacific South',

Many thanks and best regards, Yan

PBrockmann commented 2 years ago

Done by a dhisto.sort_values(by='Total', inplace=True, ascending=False)