-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
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
Conversation
pandas/_libs/buffer.pyx
Outdated
cdef Py_ssize_t[1] shape = tuple((self.bufsize // itemsize,)) | ||
cdef Py_ssize_t[1] strides = tuple((itemsize,)) | ||
|
||
buffer.buf = <void*>ptr |
There was a problem hiding this comment.
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
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 |
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. |
Closing for now - may revisit later |
See #55227 (comment)