We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Hi Wes, Not sure if this is real, but opening to follow up on a comment in http://stackoverflow.com/questions/14199168/combinatorial-explosion-when-merging-dataframes-in-pandas. Here's a fabricated example to reproduce MergeError: Combinatorial explosion! (boom) in tools/merge.py:
MergeError: Combinatorial explosion! (boom)
df1 = pd.DataFrame(np.random.randn(1000, 7), columns=list('ABCDEF') + ['G1']) df2 = pd.DataFrame(np.random.randn(1000, 7), columns=list('ABCDEF') + ['G2']) df1.merge(df2) # Boom
The value of group_sizes at the time of exception is:
[2000, 2000, 2000, 2000, 2000, 2000]
The exception does not occur if the common columns are set as the index, though.
df1 = df1.set_index(list('ABCDEF')) df2 = df2.set_index(list('ABCDEF')) df1.merge(df2, left_index=True, right_index=True, how='outer') # OK
The text was updated successfully, but these errors were encountered:
Thanks. I'll have a look when I can (later this week)
Sorry, something went wrong.
78d090a
wesm
No branches or pull requests
Hi Wes, Not sure if this is real, but opening to follow up on a comment in http://stackoverflow.com/questions/14199168/combinatorial-explosion-when-merging-dataframes-in-pandas. Here's a fabricated example to reproduce
MergeError: Combinatorial explosion! (boom)
in tools/merge.py:The value of group_sizes at the time of exception is:
The exception does not occur if the common columns are set as the index, though.
The text was updated successfully, but these errors were encountered: