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

Cython binding for slice, head and tail #619

Merged
merged 8 commits into from
Oct 5, 2022

Conversation

arupcsedu
Copy link
Collaborator

1. add cython bindings
2. Update getitem method in pycylon.DataFrame. For distributed head/ tail/ slice, pass an additional CylonEnv object to getitem method
Examples:
df = ....
df[5:100] # local slice
df[:5] # local head
df[:-5] # local tail

df[5:100, env] # distributed slice
df[:5, env] # distributed head
df[:-5, env] # distributed tail

3. add python test
Issues: #317

Reference - Design doc
https://docs.google.com/document/d/1wQ3rVj5OBLXju5hf6FWlwyDGc65ync_LZVQ_QzsHX-c/edit

Reference GPU impl #512

Signed-off-by: Arup Sarker <arupcsedu@gmail.com>
Signed-off-by: Arup Sarker <arupcsedu@gmail.com>
Signed-off-by: Arup Sarker <arupcsedu@gmail.com>
Signed-off-by: Arup Sarker <arupcsedu@gmail.com>
@arupcsedu arupcsedu changed the title Cython binding Cython binding for slice, head and tail Sep 10, 2022
Copy link
Collaborator

@vibhatha vibhatha left a comment

Choose a reason for hiding this comment

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

Other than the minor changes I suggested, PR looks good to me.

Signed-off-by: Arup Sarker <arupcsedu@gmail.com>
@nirandaperera
Copy link
Collaborator

@arupcsedu whats the status of this PR? 🙂

@arupcsedu
Copy link
Collaborator Author

arupcsedu commented Sep 28, 2022 via email

@arupcsedu
Copy link
Collaborator Author

@nirandaperera and @vibhatha , I have submitted the new changes.

Signed-off-by: Arup Sarker <arupcsedu@gmail.com>
@nirandaperera
Copy link
Collaborator

@nirandaperera and @vibhatha , I have submitted the new changes.

Please fix the branch conflict. Otherwise we wont be able to run the CI jobs.

@arupcsedu
Copy link
Collaborator Author

@

@nirandaperera and @vibhatha , I have submitted the new changes.

Please fix the branch conflict. Otherwise we wont be able to run the CI jobs.

@nirandaperera , Fixed and commited.

Signed-off-by: Arup Sarker <arupcsedu@gmail.com>
Copy link
Collaborator

@vibhatha vibhatha left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for working on this one.

@nirandaperera nirandaperera merged commit ce12454 into cylondata:main Oct 5, 2022
@nirandaperera
Copy link
Collaborator

Merged. @arupcsedu thank you for taking this up & @vibhatha thank you for reviewing this.

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