Skip to content

read_json and numpy=True and dtype=False does not preserve int64 dtype roundtrip on Windows #28560

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

Closed
WillAyd opened this issue Sep 21, 2019 · 1 comment
Labels
Dtype Conversions Unexpected or buggy dtype conversions IO JSON read_json, to_json, json_normalize Windows Windows OS

Comments

@WillAyd
Copy link
Member

WillAyd commented Sep 21, 2019

I don't have access to a PC so cannot replicate directly (if anyone else can would be appreciated) but going through #28510 there were a few Windows with dtype preservation, which would look something as follows:

>>> df = pd.DataFrame(range(3))
>>> df.dtypes
0    int64
dtype: object
>>> pd.read_json(df.to_json()).dtypes
0    int32
dtype: object

Note that this may also be irrelevant if #28512 happens

@WillAyd WillAyd added Dtype Conversions Unexpected or buggy dtype conversions IO JSON read_json, to_json, json_normalize Windows Windows OS labels Sep 21, 2019
@WillAyd
Copy link
Member Author

WillAyd commented Jan 9, 2020

numpy argument is deprecated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dtype Conversions Unexpected or buggy dtype conversions IO JSON read_json, to_json, json_normalize Windows Windows OS
Projects
None yet
Development

No branches or pull requests

1 participant