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

[DataFrame] Fix equals and make it more efficient #2186

Merged
merged 5 commits into from
Jun 4, 2018

Conversation

devin-petersohn
Copy link
Member

Previous equals had a bug and created a remote task for each line. New implementation uses _copartition to efficiently align both dataframes.

Also added some documentation for _match_partitioning because when I tried to use it, it caused problems for DataFrames that had drop on one axis and an operation on the opposite axis (i.e. a df.drop(columns=['A', 'B']).drop(index=[1, 4]).

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/5844/
Test PASSed.

@pschafhalter pschafhalter self-requested a review June 4, 2018 17:10
Copy link
Contributor

@pschafhalter pschafhalter left a comment

Choose a reason for hiding this comment

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

Requested minor change. Otherwise LGTM!


@ray.remote
def _equals_helper(left, right):
right = pd.concat(ray.get(right.tolist()), axis=1)
Copy link
Contributor

Choose a reason for hiding this comment

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

Make sure to pass copy=False.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/5857/
Test PASSed.

@pschafhalter pschafhalter merged commit b56c8ed into ray-project:master Jun 4, 2018
@pschafhalter
Copy link
Contributor

Merged. Thanks @devin-petersohn!

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 this pull request may close these issues.

3 participants