pd.NA is converted to {} instead of null with pd.DataFrame.to_json #31615
Labels
IO JSON
read_json, to_json, json_normalize
NA - MaskedArrays
Related to pd.NA and nullable extension arrays
Milestone
Code Sample
Problem Description
pd.NA
should behave asnp.nan
andNone
when converting a DataFrame to JSON.Expected Output
In the resulting JSON the
pd.NA
instances should be converted to JSON'snull
.The text was updated successfully, but these errors were encountered: