File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 1919 NaT ,
2020 iNaT ,
2121)
22+ from pandas .util ._decorators import set_module
2223
2324from pandas .core .dtypes .common import (
2425 DT64NS_DTYPE ,
@@ -93,6 +94,7 @@ def isna(
9394def isna (obj : object ) -> bool | npt .NDArray [np .bool_ ] | NDFrame : ...
9495
9596
97+ @set_module ("pandas" )
9698def isna (obj : object ) -> bool | npt .NDArray [np .bool_ ] | NDFrame :
9799 """
98100 Detect missing values for an array-like object.
@@ -307,6 +309,7 @@ def notna(
307309def notna (obj : object ) -> bool | npt .NDArray [np .bool_ ] | NDFrame : ...
308310
309311
312+ @set_module ("pandas" )
310313def notna (obj : object ) -> bool | npt .NDArray [np .bool_ ] | NDFrame :
311314 """
312315 Detect non-missing values for an array-like object.
Original file line number Diff line number Diff line change @@ -417,6 +417,8 @@ def test_set_module():
417417 assert pd .Period .__module__ == "pandas"
418418 assert pd .Timestamp .__module__ == "pandas"
419419 assert pd .Timedelta .__module__ == "pandas"
420+ assert pd .isna .__module__ == "pandas"
421+ assert pd .notna .__module__ == "pandas"
420422 assert pd .merge .__module__ == "pandas"
421423 assert pd .merge_ordered .__module__ == "pandas"
422424 assert pd .merge_asof .__module__ == "pandas"
You can’t perform that action at this time.
0 commit comments