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: relocate exceptions from pandas.core.common pandas-dev#14800
Move exceptions/warnings from pandas.core.common to pandas.api.exceptions
The exceptions/warnings can still be imported from pandas.core.common however
a DeprecationWarning will be issued when they are raised.
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.20.0.txt
+18-1
Original file line number
Diff line number
Diff line change
@@ -265,6 +265,23 @@ Deprecations
265
265
- ``DataFrame.astype()`` has deprecated the ``raise_on_error`` parameter in favor of ``errors`` (:issue:`14878`)
266
266
- ``Series.sortlevel`` and ``DataFrame.sortlevel`` have been deprecated in favor of ``Series.sort_index`` and ``DataFrame.sort_index`` (:issue:`15099`)
267
267
268
+
.. _whatsnew_0200.moved
269
+
270
+
Moved
271
+
^^^^^
272
+
273
+
The following exceptions have been relocated from ``pandas.core.common`` to ``pandas.api.exceptions``:
274
+
275
+
- ``AbstractMethodError``
276
+
- ``AmbiguousIndexError``
277
+
- ``PandasError``
278
+
- ``PerformanceWarning``
279
+
- ``SettingWithCopyError``
280
+
- ``SettingWithCopyWarning``
281
+
- ``UnsupportedFunctionCall``
282
+
- ``UnsortedIndexError``
283
+
284
+
Raising any of the above exceptions, imported from ``pandas.core.common``, will show a ``DeprecationWarning`` (:issue:`14800`)
268
285
269
286
.. _whatsnew_0200.prior_deprecations:
270
287
@@ -369,4 +386,4 @@ Bug Fixes
369
386
- Bug in ``Series`` constructor when both ``copy=True`` and ``dtype`` arguments are provided (:issue:`15125`)
370
387
- Bug in ``pd.read_csv()`` for the C engine where ``usecols`` were being indexed incorrectly with ``parse_dates`` (:issue:`14792`)
371
388
372
-
- Bug in ``Series.dt.round`` inconsistent behaviour on NAT's with different arguments (:issue:`14940`)
389
+
- Bug in ``Series.dt.round`` inconsistent behaviour on NAT's with different arguments (:issue:`14940`)
0 commit comments