Skip to content

Commit

Permalink
API: add NaTType and NAType to pandas.api.typing (#53958)
Browse files Browse the repository at this point in the history
* API: add NaTType and NAType to pandas.api.typing

* updated test
  • Loading branch information
Charlie-XIAO authored Jul 6, 2023
1 parent ea1e0c8 commit e997175
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pandas/api/typing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
Public API classes that store intermediate results useful for type-hinting.
"""

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

from pandas.core.groupby import (
DataFrameGroupBy,
SeriesGroupBy,
Expand Down Expand Up @@ -36,6 +39,8 @@
"ExponentialMovingWindow",
"ExponentialMovingWindowGroupby",
"JsonReader",
"NaTType",
"NAType",
"PeriodIndexResamplerGroupby",
"Resampler",
"Rolling",
Expand Down
2 changes: 2 additions & 0 deletions pandas/tests/api/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@ class TestApi(Base):
"ExponentialMovingWindow",
"ExponentialMovingWindowGroupby",
"JsonReader",
"NaTType",
"NAType",
"PeriodIndexResamplerGroupby",
"Resampler",
"Rolling",
Expand Down

0 comments on commit e997175

Please sign in to comment.