Skip to content

Commit 4ae9e47

Browse files
fix doctests
1 parent b956adc commit 4ae9e47

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas/_libs/tslibs/timedeltas.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1917,7 +1917,7 @@ class Timedelta(_Timedelta):
19171917
--------
19181918
Here we initialize Timedelta object with both value and unit
19191919
1920-
>>> td = pd.Timedelta(1, "d")
1920+
>>> td = pd.Timedelta(1, "D")
19211921
>>> td
19221922
Timedelta('1 days 00:00:00')
19231923

pandas/_libs/tslibs/timestamps.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2927,7 +2927,7 @@ timedelta}, default 'raise'
29272927
--------
29282928
>>> ts = pd.Timestamp(1584226800, unit='s', tz='Europe/Stockholm')
29292929
>>> ts.tz
2930-
<DstTzInfo 'Europe/Stockholm' CET+1:00:00 STD>
2930+
zoneinfo.ZoneInfo(key='Europe/Stockholm')
29312931
"""
29322932
return self.tzinfo
29332933

0 commit comments

Comments
 (0)