Skip to content

Commit f7b354c

Browse files
Update pandas/core/array_algos/masked_reductions.py
Co-authored-by: Joris Van den Bossche <[email protected]>
1 parent 4375cb2 commit f7b354c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/array_algos/masked_reductions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ def _minmax(
124124
subset = values[~mask]
125125
if subset.size:
126126
return func(values, where=~mask, axis=axis, initial=subset[0])
127-
# min/max with empty array raise in numpy, pandas returns NA
128127
else:
128+
# min/max with empty array raise in numpy, pandas returns NA
129129
return libmissing.NA
130130

131131

0 commit comments

Comments
 (0)