In this exercise I wanted to develop a Sankey diagram in Python. Data from the Tracker of Climate Strategies for Transport has been used. The database has information on transport in Nationally Determined Contributions and Long-term Strategies. As the database assesses how the transport mitigation measures are related to Avoid, Shift and Improve (read about the Avoid-Shift-Improve framework here) among other aspects. So I wanted to see how it can be visualised.
There are two different files, once it was done through the package Holoviews and once through Plotly.
In addition, I compiled Sankey diagrams through RAWGraphs which delivered excellent results (see here).
Sankey diagram with Holoviews tutorial: https://coderzcolumn.com/tutorials/data-science/how-to-plot-sankey-diagram-in-python-jupyter-notebook-holoviews-and-plotly
Sankey diagram with Plotly tutorial: https://plotly.com/python/sankey-diagram/