Closed jpintar closed 1 month ago
Solved by updating to Marsilea 0.4.6.
Thanks for using Marsilea, this is fixed since 4.5.0. If you encounter any other issues or you don't know how to make a visualization with Marsilea, feel free to open a new issue, I'm happy to help.
Problem/New Plotter
Consider a data set with the following structure:
To make a violin plot of this data set in Seaborn, we can melt the data-frame:
and use the resulting long-format frame like so:
I was trying to add such a violin plot to a Marsilea heatmap, but since
ma.plotter.Violin
only accepts wide-format data, my approach was the following:However, that fails with a
ValueError: cannot reindex on an axis with duplicate labels
.This error seems to be related to all the
NaN
s in the data-frames. The following renders without error, but is the wrong result, naturally:Is this a bug, or am I just doing something wrong?
Proposed solution
No response