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

beam_search_K1 with pandas > 1.1.0 #97

Closed
Hugomiralles opened this issue Aug 21, 2020 · 5 comments · Fixed by #103
Closed

beam_search_K1 with pandas > 1.1.0 #97

Hugomiralles opened this issue Aug 21, 2020 · 5 comments · Fixed by #103

Comments

@Hugomiralles
Copy link

With pandas version > 1.1.0, the line 148 (145, and 150) return an error: ValueError: cannot reindex from a duplicate axis.
Locally, locally I just added '.values'. Example of line 148:
colKeep[i[0]] = ((Xp[i[0]].columns.get_level_values(0) == '<=') & (thresh > i[2])).values

@dennislwei
Copy link
Collaborator

@Hugomiralles Thanks a lot for catching this. I think your fix is fine. Would you be so kind as to submit a pull request with the fix?

@Hugomiralles
Copy link
Author

I can but I am not sure of how to do it properly. Should I only commit with a message explaining the pull request and send it using "git pull origin master"?
For now, I am finishing my internship and master's thesis so I don't have a lot of time but I have a few pull request to do on AIX360 and AIF360.

@dennislwei
Copy link
Collaborator

No worries. Whenever you do have time, I recommend committing your changes to your own branch or fork of this repository. Then go to the "Pull requests" tab, click "New pull request", and fill it out. We can proceed from there.

Another user just informed me that he encountered a similar issue so he might be able to work on it too.

@dennislwei dennislwei linked a pull request Sep 28, 2020 that will close this issue
vijay-arya added a commit that referenced this issue Sep 29, 2020
Fix pandas duplicate axis issue (#97) in beam_search.py
@dennislwei
Copy link
Collaborator

@Hugomiralles I got around to fixing the pandas issue in #103 and the tests now pass. Thanks again for bringing this up.

@Hugomiralles
Copy link
Author

Hugomiralles commented Sep 29, 2020 via email

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

Successfully merging a pull request may close this issue.

2 participants