danfojs
danfojs copied to clipboard
Sorting bug when NaN values exist
Describe the bug Sorting seems to break when there's a NaN value in the series
Expected behavior Values should be sorted in ascending order
Screenshots
what part of the code needs to be fixed a clue please
You can check here
https://github.com/javascriptdata/danfojs/blob/76386815061436f031fb778c9a1e4595077a3812/src/danfojs-base/core/series.ts#L834
And you can dropna and then sort
I need the rows with NaN though, because the other columns have usable values. It would make sense if the NaN values were all together somehow, at the start or the end.
I am seeing the same issue with DataFrame sortValues function.
I don't think there's an active maintainer on this repository. It's a shame, it's the best one similar to Pandas that I've found.