Skip to content

[Python] Consolidate shared methods of RecordBatch and Table #30559

@asfimport

Description

@asfimport

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions