forked from apache/arrow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apacheGH-34729: [C++][Python] Enhanced Arrow<->Pandas map/pydict supp…
…ort (apache#34730) ### Rationale for this change Explained in issue apache#34729 ### What changes are included in this PR? - Add support for list of maps when converting Arrow to Pandas. There doesn't seem to be a strong reason to omit this. Previously it was a hard error as unsupported, due to a bool check. - Refactor Arrow Map -> Pandas to support two paths: (1) list of tuples, or (2) pydicts - Add another option in PandasOptions to enable (2), above - Bugfix in nested pydicts -> Arrow maps. - Unit tests ### Are these changes tested? Unit tests are added in `test_pandas.py` ### Are there any user-facing changes? - An additional option flag in PandasOptions - Enable list of maps to Pandas, which was previously disabled * Closes: apache#34729 Authored-by: Mike Lui <mikelui@meta.com> Signed-off-by: Will Jones <willjones127@gmail.com>
- Loading branch information
1 parent
cf66ca1
commit f42ad21
Showing
6 changed files
with
502 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.