Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARROW-3094: [Python] Easier construction of schemas and struct types
Allow calling `pa.schema()` and `pa.struct()` with a list of tuples, or a mapping of strings to datatypes, instead of having to call `pa.field()` explicitly for each field. The latter is still possible if e.g. wanting to pass metadata. Author: Antoine Pitrou <antoine@python.org> Closes #2450 from pitrou/ARROW-3094-easier-struct-schema-construction and squashes the following commits: 4b27541 <Antoine Pitrou> Use shorthand notation more often in docs 1215123 <Antoine Pitrou> Fix for Python 2.7 39a21df <Antoine Pitrou> ARROW-3094: Easier construction of schemas and struct types
- Loading branch information
Showing
4 changed files
with
133 additions
and
25 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