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
API: Make most arguments for read_html and read_json keyword-ony (#27573)
* Deprecate use of most positional arguments for read_html and read_json
* Import pandas._testing instead of pandas.util.testing
* Import pandas._testing instead of pandas.util.testing
* Update pandas/util/_decorators.py
Co-Authored-By: Joris Van den Bossche <[email protected]>
* Change displayed warning message
* Update pandas/io/html.py
Co-Authored-By: Joris Van den Bossche <[email protected]>
* Update pandas/io/json/_json.py
Co-Authored-By: Joris Van den Bossche <[email protected]>
* Restore permissions to v1.0.0.rst
* Fix expected warning message in tests for deprecate_nonkeyword_arguments
* Reformat too long line
* Remove a test too similar to another one.
* Update Whatsnew
* Fix linting
Co-authored-by: Joris Van den Bossche <[email protected]>
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v1.1.0.rst
+13
Original file line number
Diff line number
Diff line change
@@ -250,14 +250,27 @@ Assignment to multiple columns of a :class:`DataFrame` when some of the columns
250
250
251
251
Deprecations
252
252
~~~~~~~~~~~~
253
+
253
254
- Lookups on a :class:`Series` with a single-item list containing a slice (e.g. ``ser[[slice(0, 4)]]``) are deprecated, will raise in a future version. Either convert the list to tuple, or pass the slice directly instead (:issue:`31333`)
255
+
254
256
- :meth:`DataFrame.mean` and :meth:`DataFrame.median` with ``numeric_only=None`` will include datetime64 and datetime64tz columns in a future version (:issue:`29941`)
255
257
- Setting values with ``.loc`` using a positional slice is deprecated and will raise in a future version. Use ``.loc`` with labels or ``.iloc`` with positions instead (:issue:`31840`)
256
258
- :meth:`DataFrame.to_dict` has deprecated accepting short names for ``orient`` in future versions (:issue:`32515`)
257
259
- :meth:`Categorical.to_dense` is deprecated and will be removed in a future version, use ``np.asarray(cat)`` instead (:issue:`32639`)
258
260
- The ``fastpath`` keyword in the ``SingleBlockManager`` constructor is deprecated and will be removed in a future version (:issue:`33092`)
259
261
- :meth:`Index.is_mixed` is deprecated and will be removed in a future version, check ``index.inferred_type`` directly instead (:issue:`32922`)
260
262
263
+
- Passing any arguments but the first one to :func:`read_html` as
264
+
positional arguments is deprecated since version 1.1. All other
265
+
arguments should be given as keyword arguments (:issue:`27573`).
266
+
267
+
- Passing any arguments but `path_or_buf` (the first one) to
268
+
:func:`read_json` as positional arguments is deprecated since
269
+
version 1.1. All other arguments should be given as keyword
0 commit comments