Skip to content

Commit

Permalink
ENH: Expose NoDefault in pandas.api.extensions (#60696)
Browse files Browse the repository at this point in the history
* ENH: Expose NoDefault in pandas.api.extensions

* Add entry to whatsnew

* Address review comment
  • Loading branch information
snitish authored Jan 14, 2025
1 parent b5d4e89 commit fa5c255
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/source/whatsnew/v3.0.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Other enhancements
^^^^^^^^^^^^^^^^^^
- :class:`pandas.api.typing.FrozenList` is available for typing the outputs of :attr:`MultiIndex.names`, :attr:`MultiIndex.codes` and :attr:`MultiIndex.levels` (:issue:`58237`)
- :class:`pandas.api.typing.SASReader` is available for typing the output of :func:`read_sas` (:issue:`55689`)
- :class:`pandas.api.typing.NoDefault` is available for typing ``no_default``
- :func:`DataFrame.to_excel` now raises an ``UserWarning`` when the character count in a cell exceeds Excel's limitation of 32767 characters (:issue:`56954`)
- :func:`pandas.merge` now validates the ``how`` parameter input (merge type) (:issue:`59435`)
- :func:`read_spss` now supports kwargs to be passed to pyreadstat (:issue:`56356`)
Expand Down
2 changes: 2 additions & 0 deletions pandas/api/typing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"""

from pandas._libs import NaTType
from pandas._libs.lib import NoDefault
from pandas._libs.missing import NAType

from pandas.core.groupby import (
Expand Down Expand Up @@ -44,6 +45,7 @@
"JsonReader",
"NAType",
"NaTType",
"NoDefault",
"PeriodIndexResamplerGroupby",
"Resampler",
"Rolling",
Expand Down
1 change: 1 addition & 0 deletions pandas/tests/api/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ class TestApi(Base):
"JsonReader",
"NaTType",
"NAType",
"NoDefault",
"PeriodIndexResamplerGroupby",
"Resampler",
"Rolling",
Expand Down

0 comments on commit fa5c255

Please sign in to comment.