Skip to content

Commit 9b40adb

Browse files
committed
modified assert statement
1 parent 24c1f37 commit 9b40adb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/reductions/test_reductions.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -694,10 +694,10 @@ def test_ops_consistency_on_empty(self, method):
694694
nser = Series([np.nan], dtype="Int64")
695695
if method == "mean":
696696
result = getattr(eser, method)()
697-
assert pd.isna(result)
697+
assert result is pd.NA
698698

699699
result = getattr(nser, method)()
700-
assert pd.isna(result)
700+
assert result is pd.NA
701701

702702
# timedelta64[ns]
703703
tdser = Series([], dtype="m8[ns]")

0 commit comments

Comments
 (0)