You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Uwe L. Korn (JIRA)" <ji...@apache.org> on 2018/06/14 12:13:00 UTC
[jira] [Resolved] (ARROW-2694) [Python] ArrayValue string
conversion returns the representation instead of the converted python
object string
[ https://issues.apache.org/jira/browse/ARROW-2694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Uwe L. Korn resolved ARROW-2694.
--------------------------------
Resolution: Fixed
Fix Version/s: 0.10.0
Issue resolved by pull request 2130
[https://github.com/apache/arrow/pull/2130]
> [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
> Affects Versions: 0.9.0
> Reporter: Florian Jetter
> Assignee: Florian Jetter
> Priority: Minor
> Labels: pull-request-available
> Fix For: 0.10.0
>
> Time Spent: 50m
> 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
(v7.6.3#76005)