Repository navigation
GH-47172: [Python] Add a utility function to create Arrow table instead of pandas df - #47199
Conversation
|
Thanks for opening a pull request! If this is not a minor PR. Could you open an issue for this pull request on GitHub? https://github.com/apache/arrow/issues/new/choose Opening GitHub issues ahead of time contributes to the Openness of the Apache Arrow project. Then could you also rename the pull request title in the following format? or See also: |
cf9e352 to
fa15133
Compare
|
This looks pretty good @egolearner. I'll start some more Python tests and merge if they pass. |
|
@github-actions crossbow submit wheel-windows-* |
|
Revision: f0e1edf Submitted crossbow builds: ursacomputing/crossbow @ actions-9e7c764ef8 |
|
It seems
|
|
Thank you for working this @egolearner! It's a nice improvement and should improve test coverage. |
|
Thanks again for your review @rok |
raulcd
left a comment
There was a problem hiding this comment.
Thanks for the PR! I would have loved to see an utility function that does not require neither pandas nor numpy so we can reuse on our tests without numpy too, basically have a no extra requirements fixture (only python and pyarrow) so we don't require anything else. Maybe we could create a follow up issue?
Agreed! The only question in my mind here is do we expose a cpp utility for generating random array data or use Python stdlib. I think for small data sizes Python stdlib would be quite sufficient. |
|
Although if we have a dependency free test data generator we would probably want to use it everywhere. And in that case we probably want to spend the time to connect to the cpp generator we already have in place for cpp testing for Python testing. |
|
Opened #47255 |
|
After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit 2cbf122. There weren't enough matching historic benchmark results to make a call on whether there were regressions. The full Conbench report has more details. |
Rationale for this change
resolve #47172
What changes are included in this PR?
Add a utility function to create Arrow table instead of pandas df
Are these changes tested?
yes
Are there any user-facing changes?
no