DEPR: keep_default_dates
and convert_dates
in read_json
#59161
Labels
Deprecate
Functionality to remove in pandas
Dtype Conversions
Unexpected or buggy dtype conversions
IO JSON
read_json, to_json, json_normalize
read_json
hasconvert_dates
,keep_default_dates
anddtypes
that all try to perform dtype conversions on the result from the ujson parser. Conflicts can arise when a column matching the specification ofkeep_default_dates
matches a column specified indtypes
.The proposal is to deprecate
keep_default_dates
andconvert_dates
and only usedtype
's current definition ofTrue
: attempt dtype conversion on all column (and refactor to useinfer_dtype
instead ofastype
guessing)False
: perform no dtype conversiondict
: dict keys that match column labels will be cast to type in the dict valueThe text was updated successfully, but these errors were encountered: