I have multiple datasets with different size and I want to plot a violin plot from them. My dataset looks like below:
Input.CSV:
city_A city_B city C city_D
cluster1 2 5 4 4
cluster2 3 3 2 8
cluster3 2 4 5 5
cluster4 3 5 4
cluster5 3 3
cluster6 5
Note: Each city has a different size and number of clusters.
I looked into a few posts such as here and I could not understand how to plot this dataset in one plot like:
Some of the example from seaborn or matplotlib is with fake data and my data is in CSV format as I showed above. It would be great if you can provide your help with code that use data like mine.


