How to plot this kind of graph in python ? (probably some variation of alluvial plot)

Hii

Does anyone know how this kind of plot can be created in python?

They’re called Sankey Diagrams. This one has straight edged flows, and shows the stages as a stacked bars from a stacked bar chart, instead of separating them out.