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

Updates to cugraph.hypergraph (Duplicate Col Labels Bug) #4610

Merged
merged 3 commits into from
Aug 15, 2024

Conversation

nv-rliu
Copy link
Contributor

@nv-rliu nv-rliu commented Aug 14, 2024

cc: @rlratzel @ChuckHastings

This PR addresses failures seen in certain PRs (like here) due to a recent change to cudf that disallows selecting duplicate column labels.


In hypergraph.py, this PR modifies _create_hyper_edges and _create_direct_edges to ensure that DataFrames are being indexed by non-duplicate column values.

This is done by taking a list that includes duplicates (fs), and removing the non-unique values

fs = list(set(fs))

This part requires some attention from the author of the unit test @jnke2016

In test_hypergraph.py, this PR adds the check_like=True arg to assert_frame_equals function because the ordering of the columns is different for the two DFs.

@nv-rliu nv-rliu added bug Something isn't working breaking Breaking change labels Aug 14, 2024
@nv-rliu nv-rliu added this to the 24.10 milestone Aug 14, 2024
@nv-rliu nv-rliu requested a review from a team as a code owner August 14, 2024 15:17
Copy link
Contributor

@rlratzel rlratzel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Ralph!

@rlratzel
Copy link
Contributor

/merge

@rapids-bot rapids-bot bot merged commit a538745 into rapidsai:branch-24.10 Aug 15, 2024
109 of 118 checks passed
@nv-rliu nv-rliu deleted the fix-hypergraph branch August 15, 2024 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Breaking change bug Something isn't working python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants