Skip to content

Sorting bug when NaN values exist #635

Description

@GauravBhagchandani

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
image

Activity

  1. Harmedino commented on Mar 24, 2024

    @Harmedino

    what part of the code needs to be fixed a clue please

  2. steveoni commented on Mar 24, 2024

    @steveoni
    Member

    You can check here

    let sortedIdx = utils.sortArrayByIndex(rangeIdx, this.values, this.dtypes[0]);

    And you can dropna and then sort

  3. GauravB159 commented on Mar 24, 2024

    @GauravB159

    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.

  4. jacobnorris0703 commented on Jul 18, 2024

    @jacobnorris0703

    I am seeing the same issue with DataFrame sortValues function.

  5. GauravB159 commented on Jul 18, 2024

    @GauravB159

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions