Bring Drag & Drop to Dash with Dashboard Engine. 💫 Learn how at our next webinar!

How to visualize a chord diagram or sankey graph using plotly Python?

I have a dataframe like this

ID ant_mi  inf_mi  lat_mi  post_mi count
1  Yes      No      Yes      No      12
2  No       No      No       No      20
3  No       No      Yes      Yes     21
4  Yes      Yes     No       No      54

As you can see, one ID can have ant_mi and lat_mi at the time. Another has lat_mi and post_mi together. I need to use chord diagram or sankey graph with plotly and python to know which IDs have ant_mi and have lat_mi at the same time for example.

I have tried reading this post about chord diagram but I didn’t fully get it. Any help?