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:
Other ideas without dedicated issues:
- Make
pa.record_batch(..) constructor consistent with pa.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.
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:
add_columnmethod missing in pyarrow.RecordBatch #30915 (relates to)add_columnmethod missing in pyarrow.RecordBatch #30915Other ideas without dedicated issues:
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.