jorisvandenbossche commented on code in PR #39506:
URL: https://github.com/apache/arrow/pull/39506#discussion_r1511150620
##########
python/pyarrow/table.pxi:
##########
@@ -2688,6 +3002,69 @@ cdef class RecordBatch(_Tabular):
return result
+ def cast(self, Schema target_schema, safe=None, options=None):
Review Comment:
> The code duplication isn't great but it is the pattern that the rest of
the similar implementations use and it means we don't create an extra `Table`
Yes, that looks good!
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]