[
https://issues.apache.org/jira/browse/ARROW-2694?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17659720#comment-17659720
]
Rok Mihevc commented on ARROW-2694:
-----------------------------------
This issue has been migrated to [issue
#19085|https://github.com/apache/arrow/issues/19085] on GitHub. Please see the
[migration documentation|https://github.com/apache/arrow/issues/14542] for
further details.
> [Python] ArrayValue string conversion returns the representation instead of
> the converted python object string
> --------------------------------------------------------------------------------------------------------------
>
> Key: ARROW-2694
> URL: https://issues.apache.org/jira/browse/ARROW-2694
> Project: Apache Arrow
> Issue Type: Bug
> Components: Python
> Affects Versions: 0.9.0
> Reporter: Florian Jetter
> Assignee: Florian Jetter
> Priority: Minor
> Labels: pull-request-available
> Fix For: 0.10.0
>
> Time Spent: 1h
> Remaining Estimate: 0h
>
> Example:
> {code}
> # python 3.6.5
> In [1]: import pyarrow as pa
> In [2]: str(pa.array(['a'])[0]) # note the single quotes
> Out[2]: "'a'"
> In [3]: str(pa.array([1], pa.timestamp('s'))[0])
> Out[3]: "Timestamp('1970-01-01 00:00:01')"
> {code}
> instead of
> {code}
> # python 3.6.5
> In [1]: import pyarrow as pa
> In [2]: str(pa.array(['a'])[0])
> Out[2]: "a"
> In [3]: str(pa.array([1], pa.timestamp('s'))[0])
> Out[3]: "1970-01-01 00:00:01"
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)