You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "danepitkin (via GitHub)" <gi...@apache.org> on 2023/06/29 19:22:51 UTC

[GitHub] [arrow] danepitkin opened a new issue, #36399: [Python] Add missing APIs to RecordBatch class

danepitkin opened a new issue, #36399:
URL: https://github.com/apache/arrow/issues/36399

   ### Describe the enhancement requested
   
   The following APIs exist in the `Table` class, but not in the `RecordBatch` class:
   
   `add_column`
   `append_column`
   `cast`
   `drop`
   `drop_columns`
   `group_by`
   `join`
   `rename_columns`
   `remove_columns`
   `set_column`
   `shape`
   
   Note that the following `Table` APIs are not applicable to `RecordBatch`.
   `combine_chunks`
   `flatten`
   `from_batches`
   `to_batches`
   `to_reader`
   
   ### Component(s)
   
   Python


-- 
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: issues-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Python] Add missing APIs to RecordBatch class [arrow]

Posted by "thisisnic (via GitHub)" <gi...@apache.org>.
thisisnic commented on issue #36399:
URL: https://github.com/apache/arrow/issues/36399#issuecomment-3921764639

   This issue has been marked as stale because it has had no activity in the past 2 years. Please remove the stale label or comment below, or this issue will be closed in 14 days.


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Python] Add missing APIs to RecordBatch class [arrow]

Posted by "judahrand (via GitHub)" <gi...@apache.org>.
judahrand commented on issue #36399:
URL: https://github.com/apache/arrow/issues/36399#issuecomment-2003545855

   And `.filter` as well? 


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Python] Add missing APIs to RecordBatch class [arrow]

Posted by "judahrand (via GitHub)" <gi...@apache.org>.
judahrand commented on issue #36399:
URL: https://github.com/apache/arrow/issues/36399#issuecomment-2003462199

   > With #39506 merged, the remaining relevant methods missing on RecordBatch are:
   > 
   > * group_by
   > * join
   > * shape
   
   And now that #34234 is merged `join_asof` as well? 


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Python] Add missing APIs to RecordBatch class [arrow]

Posted by "jorisvandenbossche (via GitHub)" <gi...@apache.org>.
jorisvandenbossche commented on issue #36399:
URL: https://github.com/apache/arrow/issues/36399#issuecomment-1999828830

   With https://github.com/apache/arrow/pull/39506 merged, the remaining relevant methods missing on RecordBatch are:
   
   * group_by
   * join
   * shape
   


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] jorisvandenbossche commented on issue #36399: [Python] Add missing APIs to RecordBatch class

Posted by "jorisvandenbossche (via GitHub)" <gi...@apache.org>.
jorisvandenbossche commented on issue #36399:
URL: https://github.com/apache/arrow/issues/36399#issuecomment-1614586739

   Thanks for the overview!
   
   I would personally start with the methods to manipulate the RecordBatch, i.e. the ones for adding/removing/renaming columns, and `cast`.
   
   


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Python] Add missing APIs to RecordBatch class [arrow]

Posted by "judahrand (via GitHub)" <gi...@apache.org>.
judahrand commented on issue #36399:
URL: https://github.com/apache/arrow/issues/36399#issuecomment-2004475739

   I think there is also an open question as to what type `join` and `join_asof` should return. I'm not sure it makes sense for these methods to return a `RecordBatch` since, depending on the data and join type, they may return many more rows than either of the input `RecordBatches`. The obvious option would then be to return a `Table` or a `RecordBatchReader`. A `Table` might be more immediately useful to consumers as it allows for methods to be chained without calling `.read_all`, however, a `RecordBatchReader` in some ways makes more sense given that cases where the users is operating on a `RecordBatch` are likely to be cases where streaming type workflows are preferable.
   
   What do you think @jorisvandenbossche?


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org