BUG: ptp fails on datetime types with out parameter #10290
Labels
00 - Bug
component: numpy._core
component: numpy.datetime64
(and timedelta64)
component: numpy.dtype
This is because it assumes that
d.max()
andd.ptp()
have the same dtype, which they do not. Related to #10277.Perhaps we need an
optional_out
argument, which is only used if the dtypes match?The text was updated successfully, but these errors were encountered: