Skip to content

Commit f4007b4

Browse files
committed
decorator_4
1 parent 217a0ed commit f4007b4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pandas/core/dtypes/missing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ def isna(obj: object) -> bool | npt.NDArray[np.bool_] | NDFrame:
180180
isnull = isna
181181

182182

183-
@set_module("pandas")
184183
def _isna(obj):
185184
"""
186185
Detect missing values, treating None, NaN or NA as null.
@@ -313,6 +312,7 @@ def notna(
313312
def notna(obj: object) -> bool | npt.NDArray[np.bool_] | NDFrame: ...
314313

315314

315+
@set_module('pandas')
316316
def notna(obj: object) -> bool | npt.NDArray[np.bool_] | NDFrame:
317317
"""
318318
Detect non-missing values for an array-like object.

pandas/tests/api/test_api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,3 +418,4 @@ def test_set_module():
418418
assert pd.Timestamp.__module__ == "pandas"
419419
assert pd.Timedelta.__module__ == "pandas"
420420
assert pd.isna.__module__ == "pandas"
421+
assert pd.notna.__module__ == "pandas"

0 commit comments

Comments
 (0)