Closed minoguep closed 2 years ago
Added a test there. Always kinda messy dealing with dataframe comparisons so hopefully the way I went about it is OK for you.
Let me know if there are any issues or if anything doesn't make sense.
I don't urgently need a release so no rush at all, whenever suits you!
Ok, it could be a while as there is no release pipeline on this repository so it's manual or I need to put it into place. Meanwhile you can install with pip install -U git+https://github.com/Pierre-Sassoulas/pySankey.git@4f64f8aed18ba137d8c53d856412f90432005e6c
Cool, thanks!
Hi there 👋
Noticed an issue when using this module the other day where if you pass a dataframe that has been sorted based on the weights, the output is incorrect (see example attached below). I did a bit of digging and I noticed that this is because you reindex
left
andright
if they are passed as a series but not theleftWeight
andrightWeight
, so when you then create thedataFrame
variable, there is in index mismatch and the values get jumbled up basically.Example
Sample dataset
Create Sankey's