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
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.20.0.txt
+26
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,28 @@ Commonly called 'unix epoch' or POSIX time.
76
76
77
77
pd.to_datetime([1, 2, 3], unit='D')
78
78
79
+
.. _whatsnew_0200.enhancements.errors:
80
+
81
+
pandas errors
82
+
^^^^^^^^^^^^^
83
+
84
+
We are adding a standard public location for all pandas exceptions & warnings ``pandas.errors``. (:issue:`14800`). Previously
85
+
these exceptions & warnings could be imported from ``pandas.core.common`` or ``pandas.io.common``. These exceptions and warnings
86
+
will be removed from the ``*.common`` locations in a future release. (:issue:`15541`)
87
+
88
+
The following are now part of this API:
89
+
90
+
.. code-block:: python
91
+
92
+
['DtypeWarning',
93
+
'EmptyDataError',
94
+
'OutOfBoundsDatetime',
95
+
'ParserError',
96
+
'ParserWarning',
97
+
'PerformanceWarning',
98
+
'UnsortedIndexError',
99
+
'UnsupportedFunctionCall']
100
+
79
101
.. _whatsnew_0200.enhancements.groupby_access:
80
102
81
103
Groupby Enhancements
@@ -858,6 +880,10 @@ Other API Changes
858
880
- ``NaT`` will now correctly return ``np.nan`` for ``Timedelta`` and ``Period`` accessors such as ``days`` and ``quarter`` (:issue:`15782`)
859
881
- ``NaT`` will now returns ``NaT`` for ``tz_localize`` and ``tz_convert``
860
882
methods (:issue:`15830`)
883
+
- ``DataFrame`` and ``Panel`` constructors with invalid input will now raise ``ValueError`` rather than ``PandasError``, if called with scalar inputs and not axes (:issue:`15541`)
884
+
885
+
- ``DataFrame`` and ``Panel`` constructors with invalid input will now raise ``ValueError`` rather than ``pandas.core.common.PandasError``, if called with scalar inputs and not axes; The exception ``PandasError`` is removed as well. (:issue:`15541`)
886
+
- The exception ``pandas.core.common.AmbiguousIndexError`` is removed as it is not referenced (:issue:`15541`)
0 commit comments