Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Python] ArrayValue string conversion returns the representation instead of the converted python object string #19085

Closed
asfimport opened this issue Jun 10, 2018 · 1 comment

Comments

@asfimport
Copy link

Example:

# 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')"

instead of

# 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"

Reporter: Florian Jetter / @fjetter
Assignee: Florian Jetter / @fjetter

PRs and other links:

Note: This issue was originally created as ARROW-2694. Please see the migration documentation for further details.

@asfimport
Copy link
Author

Uwe Korn / @xhochy:
Issue resolved by pull request 2130
#2130

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant