[ 
https://issues.apache.org/jira/browse/ARROW-2832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wes McKinney closed ARROW-2832.
-------------------------------
    Resolution: Not A Problem

Didn't look closely enough at the repr. The issue is that the pandas metadata 
is a serialized JSON string, so there's nothing to do here

> [Python] Pretty-print schema metadata in Schema.__repr__
> --------------------------------------------------------
>
>                 Key: ARROW-2832
>                 URL: https://issues.apache.org/jira/browse/ARROW-2832
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: Python
>            Reporter: Wes McKinney
>            Assignee: Wes McKinney
>            Priority: Major
>              Labels: usability
>             Fix For: 0.10.0
>
>
> The default formatting is a bit unreadable
> {code}
> a: string
> b: double
> c: bool
> metadata
> --------
> {b'pandas': b'{"index_columns": [], "column_indexes": [], "columns": 
> [{"name":'
>             b' "a", "field_name": "a", "pandas_type": "unicode", 
> "numpy_type":'
>             b' "object", "metadata": null}, {"name": "b", "field_name": "b", 
> "'
>             b'pandas_type": "float64", "numpy_type": "float64", "metadata": 
> nu'
>             b'll}, {"name": "c", "field_name": "c", "pandas_type": "bool", 
> "nu'
>             b'mpy_type": "object", "metadata": null}], "pandas_version": 
> "0.23'
>             b'.2"}'}
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to