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
Comments
@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? |
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"? |
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. |
Fix pandas duplicate axis issue (#97) in beam_search.py
@Hugomiralles I got around to fixing the pandas issue in #103 and the tests now pass. Thanks again for bringing this up. |
Thanks to you for fixing the issue, I only discover it. Unfortunately, I
did not have the time to do it this month.
Le mar. 29 sept. 2020 à 18:44, dennislwei <notifications@github.com> a
écrit :
… @Hugomiralles <https://github.com/Hugomiralles> I got around to fixing
the pandas issue in #103 <#103>
and the tests now pass. Thanks again for bringing this up.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#97 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AH74X23XBM4PBYJVKE4YQX3SIIFILANCNFSM4QHIV2UQ>
.
|
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
The text was updated successfully, but these errors were encountered: