wjones127 opened a new pull request #9073:
URL: https://github.com/apache/arrow/pull/9073
These changes make it easier to get an Array / Field from a
`pyarrow.RecordBatch` by name, mimicking the existing functionality of the
`pyarrow.Table` API.
```python
# Existing pyarrow.Table API:
table.field('my_column') # returns pyarrow.Field
table.column('my_column') # returns pyarrow.ChunkedArray
table['my_column'] # returns pyarrow.ChunkedArray
# New pyarrow.RecordBatch API:
batch.field('my_column') # returns pyarrow.Field
batch.column('my_column') # returns pyarrow.Array
batch['my_column'] # returns pyarrow.Array
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]