Skip to content

Commit ce850cd

Browse files
DOC: update numpy/_core/fromnumeric.py
Co-authored-by: Joren Hammudoglu <[email protected]>
1 parent f2587fd commit ce850cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/_core/fromnumeric.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3885,7 +3885,7 @@ def mean(a, axis=None, dtype=None, out=None, keepdims=np._NoValue, *,
38853885
0.55000000074505806 # may vary
38863886
38873887
Computing the mean in timedelta64 is available:
3888-
>>> b = np.array([np.timedelta64(1,'D'), np.timedelta64(3,'D')])
3888+
>>> b = np.array([1, 3], dtype="timedelta64[D]")
38893889
>>> np.mean(b)
38903890
2 days
38913891

0 commit comments

Comments
 (0)