Skip to content

Commit 7c02c77

Browse files
committed
Use np.isclose to make test stronger
1 parent 7ec5c80 commit 7c02c77

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/source/whatsnew/v3.0.0.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ Other enhancements
6262
- Support passing a :class:`Iterable[Hashable]` input to :meth:`DataFrame.drop_duplicates` (:issue:`59237`)
6363
- Support reading Stata 102-format (Stata 1) dta files (:issue:`58978`)
6464
- Support reading Stata 110-format (Stata 7) dta files (:issue:`47176`)
65+
- Support skipna=True in operations on Float64 arrays with null values (:issue:`59965`)
6566

6667
.. ---------------------------------------------------------------------------
6768
.. _whatsnew_300.notable_bug_fixes:

pandas/tests/series/test_reductions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,4 +230,4 @@ def test_mean_with_skipna():
230230
series1 = Series({"a": 0.0, "b": 1, "c": 1}, dtype="Float64")
231231
series2 = Series({"a": 0.0, "b": 2, "c": 2}, dtype="Float64")
232232
result = series1 / series2
233-
assert pd.notna(result.mean(skipna=True))
233+
assert np.isclose(result.mean(skipna=True), 0.5)

0 commit comments

Comments
 (0)