Skip to content

DF.Sort Values #74

@grpandi

Description

@grpandi

Sorting values giving wrong result when we have duplicate value in the sorting column.

Dataframe before sorting:
image

╔═══╤═══════════════════╤═══════════════════╗
║ │ fam │ fam_count ║
╟───┼───────────────────┼───────────────────╢
║ 0 │ fFZX │ 4 ║
╟───┼───────────────────┼───────────────────╢
║ 1 │ fFVX │ 12 ║
╟───┼───────────────────┼───────────────────╢
║ 2 │ fU5X │ 16 ║
╟───┼───────────────────┼───────────────────╢
║ 3 │ fULX │ 2 ║
╟───┼───────────────────┼───────────────────╢
║ 4 │ fDHX │ 3 ║
╟───┼───────────────────┼───────────────────╢
║ 5 │ fWNX │ 2 ║
╟───┼───────────────────┼───────────────────╢
║ 6 │ f78X │ 3 ║
╚═══╧═══════════════════╧═══════════════════╝

Dataframe after Sort values:

╔═══╤═══════════════════╤═══════════════════╗
║ │ fam │ fam_count ║
╟───┼───────────────────┼───────────────────╢
║ 3 │ fULX │ 2 ║
╟───┼───────────────────┼───────────────────╢
║ 3 │ fULX │ 2 ║
╟───┼───────────────────┼───────────────────╢
║ 4 │ fDHX │ 3 ║
╟───┼───────────────────┼───────────────────╢
║ 4 │ fDHX │ 3 ║
╟───┼───────────────────┼───────────────────╢
║ 0 │ fFZX │ 4 ║
╟───┼───────────────────┼───────────────────╢
║ 1 │ fFVX │ 12 ║
╟───┼───────────────────┼───────────────────╢
║ 2 │ fU5X │ 16 ║
╚═══╧═══════════════════╧═══════════════════╝

index 5, 6 are missing and 3 and 4 are duplicating.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions