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] NaT date32 values are only converted to nulls if from_pandas is used #17885

Closed
asfimport opened this issue Dec 6, 2017 · 3 comments
Closed

Comments

@asfimport
Copy link

np.array([None, date(2017, 4, 4)], dtype='datetime64[D]')
pa.array(expected, from_pandas=True) -> [null, 2017-4-4]
pa.array(expected, from_pandas=True) -> [1970-1-1, 2017-4-4]

Reporter: Uwe Korn / @xhochy
Assignee: Wes McKinney / @wesm

PRs and other links:

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

@asfimport
Copy link
Author

Uwe Korn / @xhochy:
@wesm is this expected behaviour or a bug? I could not infer that from the comment on pa.array().

@asfimport
Copy link
Author

Wes McKinney / @wesm:
Seems buggy. I will take a look!

@asfimport
Copy link
Author

Wes McKinney / @wesm:
Issue resolved by pull request 1399
#1399

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

2 participants