Skip to content

Possible bug with _dedup_index when df has only 1 row. #181

@IavTavares

Description

@IavTavares

So, I've defined a _dedup_index for my custom index.
When I pass to it a pandas dataframe with just 1 row, the function max_pairs gets called, return 0, and then we get a division by zero on this line.

Since I see the deprecated tag on the docstring of max_pairs, I think this may be a bug...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions