forked from apache/arrow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARROW-17989: [C++][Python] Enable struct_field kernel to accept strin…
…g field names (apache#14495) Will close [ARROW-17989](https://issues.apache.org/jira/browse/ARROW-17989) Allows using names in `pc.struct_field` ```python In [1]: arr = pa.array([{'a': {'b': 1}, 'c': 2}]) In [2]: pc.struct_field(arr, 'c') Out[2]: <pyarrow.lib.Int64Array object at 0x7f1442da3d60> [ 2 ] In [3]: pc.struct_field(arr, '.a.b') Out[3]: <pyarrow.lib.Int64Array object at 0x7f14436d0f40> [ 1 ] # And indices as before... In [4]: pc.struct_field(arr, [0, 0]) Out[4]: <pyarrow.lib.Int64Array object at 0x7f14436d0ee0> [ 1 ] In [5]: ``` Lead-authored-by: Miles Granger <[email protected]> Co-authored-by: Antoine Pitrou <[email protected]> Co-authored-by: Joris Van den Bossche <[email protected]> Signed-off-by: Joris Van den Bossche <[email protected]>
- Loading branch information
1 parent
f769f6b
commit b1110ae
Showing
11 changed files
with
267 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.