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

Implement Buffer Protocol for PandasBuffer #55671

Closed
wants to merge 25 commits into from

Conversation

WillAyd
Copy link
Member

@WillAyd WillAyd commented Oct 24, 2023

cdef Py_ssize_t[1] shape = tuple((self.bufsize // itemsize,))
cdef Py_ssize_t[1] strides = tuple((itemsize,))

buffer.buf = <void*>ptr
Copy link
Member Author

Choose a reason for hiding this comment

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

There might be a better way of doing this overall, but I figured since self.ptr returns an int it is an easy bolt on to the existing design

@WillAyd
Copy link
Member Author

WillAyd commented Oct 24, 2023

Need to investigate the validity buffer in more detail. Arrow would use bits for that so some of the sizing may be off, if that hasn't already been converted to bytes elsewhere in the interchange

@MarcoGorelli MarcoGorelli self-requested a review November 7, 2023 11:41
@mroeschke mroeschke added the Interchange Dataframe Interchange Protocol label Nov 7, 2023
Copy link
Contributor

This pull request is stale because it has been open for thirty days with no activity. Please update and respond to this comment if you're still interested in working on this.

@github-actions github-actions bot added the Stale label Feb 11, 2024
@WillAyd
Copy link
Member Author

WillAyd commented Mar 19, 2024

Closing for now - may revisit later

@WillAyd WillAyd closed this Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Interchange Dataframe Interchange Protocol Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants