-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
ARROW-17131: [Python] add StructType().field(): returns a field by name or index #13652
Conversation
|
|
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.
This looks good. I had two suggestions, which are mostly curiosities about Cython.
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.
Thanks for the PR!
It's also fine if you prefer to leave it for another JIRA/PR, but so the one other data type that also uses the existing fields
method (defined on the base class) is UnionType, which currently also implements __getitem__
to access that field. For consistency, it would probably be good to add a public field() method to UnionType as well.
1a13534
to
10bc33e
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.
Thanks, just one question
@anjakefala Can you take a look at the CI failures? |
@pitrou Done! |
231f2b3
to
add10bd
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.
LGTM, sorry for the delay!
Benchmark runs are scheduled for baseline = fa33ca4 and contender = 8c17925. 8c17925 is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
…me or index (apache#13652) Authored-by: anjakefala <[email protected]> Signed-off-by: David Li <[email protected]>
No description provided.