-
Notifications
You must be signed in to change notification settings - Fork 89
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
refactor: from_rdataframe to use LayoutBuilder #1620
refactor: from_rdataframe to use LayoutBuilder #1620
Conversation
Codecov Report
|
896c56c
to
cbf3cbc
Compare
dbfa633
to
e4629d1
Compare
fea7de5
to
0d9b328
Compare
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.
@jpivarski - I'm done with this PR. Please, review when you have time. Thanks!
ListOffsetBuilder = cppyy.gbl.awkward.LayoutBuilder.ListOffset[ | ||
"int64_t", | ||
f"awkward::LayoutBuilder::ListOffset<int64_t, awkward::LayoutBuilder::Numpy<{data_type}>", | ||
] |
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.
I think, this should be generated from a Form. I'll do it as a separate PR after introducing multiple columns.
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.
I think it looks good! I have a few questions inline about how things will evolve (will explicit functions be converted to something that works on general depth someday)?
Also, I see the to_char_buffers
that we had talked about.
Oh, I'll let you decide when to merge, since you might want to make changes based on my questions. But I approve the PR and you can squash-and-merge it when you're ready. |
Thanks, @jpivarski! I think, I've addressed most of your comments. The recursive method is for the next PR because it has to take multiple columns to avoid multiple event loops. |
LayoutBuilder
API to support user-allocatedchar
buffersstatic_cast
withreinterpret_cast
inGrowableBuffer
andLayoutBuilder
sfrom_rdataframe
data accumulation tostd::vectors
withLayoutBuilder
s