Skip to content

Commit 7d32184

Browse files
authored
Import OptionError in pandas.errors (#32142)
1 parent 1c142e7 commit 7d32184

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

doc/source/whatsnew/v1.1.0.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Other enhancements
4343

4444
- :class:`Styler` may now render CSS more efficiently where multiple cells have the same styling (:issue:`30876`)
4545
- When writing directly to a sqlite connection :func:`to_sql` now supports the ``multi`` method (:issue:`29921`)
46-
-
46+
- `OptionError` is now exposed in `pandas.errors` (:issue:`27553`)
4747
-
4848

4949
.. ---------------------------------------------------------------------------

pandas/errors/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
Expose public exceptions & warnings
55
"""
66

7+
from pandas._config.config import OptionError
8+
79
from pandas._libs.tslibs import NullFrequencyError, OutOfBoundsDatetime
810

911

pandas/tests/test_errors.py

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"EmptyDataError",
1818
"ParserWarning",
1919
"MergeError",
20+
"OptionError",
2021
],
2122
)
2223
def test_exception_importable(exc):

0 commit comments

Comments
 (0)