Skip to content

Commit e997175

Browse files
authored
API: add NaTType and NAType to pandas.api.typing (#53958)
* API: add NaTType and NAType to pandas.api.typing * updated test
1 parent ea1e0c8 commit e997175

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

pandas/api/typing/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
Public API classes that store intermediate results useful for type-hinting.
33
"""
44

5+
from pandas._libs import NaTType
6+
from pandas._libs.missing import NAType
7+
58
from pandas.core.groupby import (
69
DataFrameGroupBy,
710
SeriesGroupBy,
@@ -36,6 +39,8 @@
3639
"ExponentialMovingWindow",
3740
"ExponentialMovingWindowGroupby",
3841
"JsonReader",
42+
"NaTType",
43+
"NAType",
3944
"PeriodIndexResamplerGroupby",
4045
"Resampler",
4146
"Rolling",

pandas/tests/api/test_api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,8 @@ class TestApi(Base):
259259
"ExponentialMovingWindow",
260260
"ExponentialMovingWindowGroupby",
261261
"JsonReader",
262+
"NaTType",
263+
"NAType",
262264
"PeriodIndexResamplerGroupby",
263265
"Resampler",
264266
"Rolling",

0 commit comments

Comments
 (0)