Skip to content

Commit 25249e4

Browse files
Charlie-XIAOim-vinicius
authored and
im-vinicius
committed
API: add NaTType and NAType to pandas.api.typing (pandas-dev#53958)
* API: add NaTType and NAType to pandas.api.typing * updated test
1 parent 0eb0b0e commit 25249e4

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

pandas/api/typing/__init__.py

+5
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

+2
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)