Skip to content

Commit ab9313b

Browse files
committedOct 23, 2018
BUG-23282 calling min on series of NaT returns NaT
1 parent 349ca0a commit ab9313b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎pandas/core/nanops.py

+2
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,8 @@ def reduction(values, axis=None, skipna=True, mask=None):
718718
result = np.nan
719719
else:
720720
result = getattr(values, meth)(axis)
721+
if is_integer(result) and result == _int64_max:
722+
result = tslibs.iNaT
721723

722724
result = _wrap_results(result, dtype)
723725
return _maybe_null_out(result, axis, mask)

0 commit comments

Comments
 (0)