Python Sankey Diagram, Pointplot, KDE, Choropleth, Cartogram Maps with geoplot

Поделиться
HTML-код
  • Опубликовано: 23 окт 2024
  • In this python tutorial, we will go over how to create maps with sankey diagrams, maps with pointplots, maps with KDE plots, choropleth maps, and cartogram maps with geoplot. Other topics covered include: shapefile to geodataframe, pandas dataframe to geodataframe, geojson to geodataframe.
    Jupyter Notebook on GitHub: github.com/gro...
    Other notes:
    Normally, it appears the argument used for color is hue (instead of color) however for the sankey diagram color works.
    You can move the legends and an example is in the Jupyter notebook on GitHub
    To change the way the map is displayed you can use the extent argument (example using pointplot - use extent=(-180, -90, 180, 90), etc.)
    The shade=True argument for the KDE plot shades the KDE using the colormap. If False it will just show the KDE lines.
    To combine or overlay plots, sometimes you can put the ax argument in either part and it will work.

Комментарии • 7