Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
IavTavares opened this issue Aug 18, 2022 · 0 comments
Open

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

IavTavares opened this issue Aug 18, 2022 · 0 comments

Comments

@IavTavares
Copy link

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant