You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2020/10/05 16:11:00 UTC
[jira] [Resolved] (ARROW-9941) [Python] Better string
representation for extension types
[ https://issues.apache.org/jira/browse/ARROW-9941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antoine Pitrou resolved ARROW-9941.
-----------------------------------
Resolution: Fixed
Issue resolved by pull request 8312
[https://github.com/apache/arrow/pull/8312]
> [Python] Better string representation for extension types
> ---------------------------------------------------------
>
> Key: ARROW-9941
> URL: https://issues.apache.org/jira/browse/ARROW-9941
> Project: Apache Arrow
> Issue Type: Wish
> Components: C++, Python
> Reporter: Antoine Pitrou
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.0.0
>
> Time Spent: 2h 50m
> Remaining Estimate: 0h
>
> When one defines an extension type in Python (by subclassing {{PyExtensionType}}) and uses that type e.g. in a Arrow table, the printed schema looks like this:
> {code}
> pyarrow.Table
> a: extension<arrow.py_extension_type>
> b: extension<arrow.py_extension_type>
> {code}
> ... which isn't very informative. PyExtensionType could perhaps override ToString() and call {{str}} on the type instance.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)