Repository navigation
ARROW-17131: [Python] add StructType().field(): returns a field by name or index - #13652
Conversation
|
|
|
|
wjones127
left a comment
There was a problem hiding this comment.
This looks good. I had two suggestions, which are mostly curiosities about Cython.
jorisvandenbossche
left a comment
There was a problem hiding this comment.
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
|
@anjakefala Can you take a look at the CI failures? |
|
@pitrou Done! |
231f2b3 to
add10bd
Compare
|
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.