You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DEPR: Deprecate literal json string input to read_json (pandas-dev#53409)
* Adding logic to throw a deprecation warning when a literal json string is passed to read_json
* Adding logic to throw a deprecation warning when a literal json string is passed to read_json
* Updating documentation and adding PR num to unit test
* Adding a deprecation warning to the user guide
* Updating unit tests to check for FutureWarning
* Fixing unit tests
* Fixing unit tests
* Fixing unit tests
* Fixing unit tests
* Fixing documentation errors in PR feedback
* Fixing documentation errors in PR feedback
* Updating unit tests to use StringIO rather than catch FutureWarning
* Finishing updating unit tests to use StringIO rather than catch FutureWarning
* Fixing indendation errors in unit tests. Moved one unit test to another file.
* Updating unit test name
* Adding additional checks to unit tests
* Fixing unit tests
* Fixing unit tests
* Updating whatsnew documentation per reviewer recommendations.
* Fixing failing code tests
* Fixing failing code tests
* Adding import to doc string example
* Fixing documentation formatting error
* Fixing documentation formatting error
* Fixing documentation error after fixing merge conflict
* Fixing formatting errors in whatsnew file
* Updating formatting errors in documentation
* Updating formatting errors in documentation
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v2.1.0.rst
+1
Original file line number
Diff line number
Diff line change
@@ -293,6 +293,7 @@ Deprecations
293
293
- Deprecated behavior of :func:`assert_series_equal` and :func:`assert_frame_equal` considering NA-like values (e.g. ``NaN`` vs ``None`` as equivalent) (:issue:`52081`)
294
294
- Deprecated constructing :class:`SparseArray` from scalar data, pass a sequence instead (:issue:`53039`)
295
295
- Deprecated falling back to filling when ``value`` is not specified in :meth:`DataFrame.replace` and :meth:`Series.replace` with non-dict-like ``to_replace`` (:issue:`33302`)
296
+
- Deprecated literal json input to :func:`read_json`. Wrap literal json string input in ``io.StringIO`` instead. (:issue:`53409`)
296
297
- Deprecated option "mode.use_inf_as_na", convert inf entries to ``NaN`` before instead (:issue:`51684`)
297
298
- Deprecated parameter ``obj`` in :meth:`GroupBy.get_group` (:issue:`53545`)
298
299
- Deprecated positional indexing on :class:`Series` with :meth:`Series.__getitem__` and :meth:`Series.__setitem__`, in a future version ``ser[item]`` will *always* interpret ``item`` as a label, not a position (:issue:`50617`)
0 commit comments