Commits


Judah Rand authored and GitHub committed 7f361fd8065
GH-30915: [C++][Python] Add missing methods to `RecordBatch` (#39506) ### Rationale for this change These methods are present on `Table` but missing on `RecordBatch`: * `add_column` * `append_column` * `remove_column` * `set_column` * `drop_columns` * `rename_columns` * `cast` We also should probably accept a `dict` as input to `pa.record_batch` like we do for `pa.table`. ### What changes are included in this PR? Add the methods. ### Are these changes tested? Yes. * Parent issue: https://github.com/apache/arrow/issues/36399 * Related: #30559 * Closes #30915 * GitHub Issue: #30915 Lead-authored-by: Judah Rand <17158624+judahrand@users.noreply.github.com> Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com> Signed-off-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>