Skip to content

read_json with dtype=False infers Missing Values as None #28501

Closed
@WillAyd

Description

@WillAyd

Run against master:

In [13]: pd.read_json("[null]", dtype=True)
Out[13]:
    0
0 NaN

In [14]: pd.read_json("[null]", dtype=False)
Out[14]:
      0
0  None

I think the second above is an issue - should probably return np.nan instead of None

Metadata

Metadata

Labels

BugIO JSONread_json, to_json, json_normalizeMissing-datanp.nan, pd.NaT, pd.NA, dropna, isnull, interpolate

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions