feat: add DataFrame.to_arrow to create Arrow Table from DataFrame#807
feat: add DataFrame.to_arrow to create Arrow Table from DataFrame#807
DataFrame.to_arrow to create Arrow Table from DataFrame#807Conversation
|
Here is the summary of changes. You are about to add 1 region tag.
This comment is generated by snippet-bot.
|
…to issue735-to_arrow-for-polars
…to issue735-to_arrow-for-polars
| @@ -0,0 +1,292 @@ | |||
| # Copyright 2019 Google LLC | |||
There was a problem hiding this comment.
Is this file auto generated from a template? If not, can we update the copyright year to 2024? Also check other new files too?
There was a problem hiding this comment.
This is templated, so not much we can do.
| polars_df = polars.from_arrow(arrow_table) | ||
| # [END bigquery_dataframes_to_polars] | ||
|
|
||
| assert polars_df is not None |
There was a problem hiding this comment.
Can we assert polars_df is equal to bf_df? Or maybe there are some diverse?
There was a problem hiding this comment.
We could possibly compare shapes or some aggregate values. I'll give it a try.
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Towards #735 🦕