-
Notifications
You must be signed in to change notification settings - Fork 4.1k
[Python] Consolidate shared methods of RecordBatch and Table #30559
Copy link
Copy link
Closed as not planned
Labels
Component: PythonStatus: stale-warningIssues and PRs flagged as stale which are due to be closed if no indication otherwiseIssues and PRs flagged as stale which are due to be closed if no indication otherwiseType: enhancement
Description
RecordBatch and Table have a bunch of similar methods that don't directly interact with the C++ pointer, and thus that could be shared in a common base class.
In addition, we also have some methods on Table that would also be useful for RecordBatch (eg cast, group_by, drop, select, sort_by, rename_columns), which could also be shared with a common mixin.
Reporter: Joris Van den Bossche / @jorisvandenbossche
Related issues:
- [Python]
add_columnmethod missing in pyarrow.RecordBatch #30915 (relates to) - [Python] Add sort_by to RecordBatch #33207
- [Python]
add_columnmethod missing in pyarrow.RecordBatch #30915 - [Python] Table.from_struct_array function #33500
Other ideas without dedicated issues:
- Make
pa.record_batch(..)constructor consistent withpa.table(..)(eg accepting a dict of column names -> column values)
Note: This issue was originally created as ARROW-15042. Please see the migration documentation for further details.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Component: PythonStatus: stale-warningIssues and PRs flagged as stale which are due to be closed if no indication otherwiseIssues and PRs flagged as stale which are due to be closed if no indication otherwiseType: enhancement