Skip to content

Commit 7a1690c

Browse files
author
cloudboat
committed
Fix the accuracy for specific problem
1 parent 47efce7 commit 7a1690c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/arrays/datetimelike.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1656,7 +1656,7 @@ def mean(self, *, skipna: bool = True, axis: AxisInt | None = 0):
16561656
>>> tdelta_idx = pd.to_timedelta([1, 2, 3], unit="D")
16571657
>>> tdelta_idx
16581658
TimedeltaIndex(['1 days', '2 days', '3 days'],
1659-
dtype='timedelta64[us]', freq=None)
1659+
dtype='timedelta64[ns]', freq=None)
16601660
>>> tdelta_idx.mean()
16611661
Timedelta('2 days 00:00:00')
16621662
"""

0 commit comments

Comments
 (0)