DEPR: keep_default_dates and convert_dates in read_json #59349
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue #59161
(NOT TOTALLY DONE THIS IS A DRAFT PULL REQUEST ... THE DESCRIPTION WILL BE DONE IN PROFESSIONAL LANGUAGE IF I CAN GET TO THE ACTUAL PULL REQUEST)
New contributor and self-taught non-professional programmer who loves pandas and fixed a few tests here in 2022.
The part not finished yet = refactoring
dtype
conversion to useinfer_dtype
instead ofastype
guessing ... reading the directions closely enough to get the development environment built correctly took a while and then I've made quite a few changes and am a little bit confused about the aforementioned part and was hoping to get the other changes checked in order to make sure that I am on the correct path.I tried to delete instances of
keep_default_dates
andconvert_dates
in parameters, calls, and corresponding tests ofread_json
and in related functions, so that it will fall back on usingdtype
conversions from the ujson parser, while keeping the functions and tests intact whenever they are not totally dependent onkeep_default_dates
andconvert_dates
.convert_dates
also exists in a file forsas7bdat
and in parts of the code involvingStata
, but not as part of theread_json
function in such cases, so I am pretty sure that these are separate but I wanted to check.