Skip to content

Commit 2c23f48

Browse files
author
Sylvain MARIE
committed
Fixed doctest example
1 parent 2685aff commit 2c23f48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/_libs/tslibs/timestamps.pyx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1206,9 +1206,9 @@ class Timestamp(_Timestamp):
12061206
--------
12071207
>>> from pandas._libs.tslibs import convert_strftime_format
12081208
>>> ts = pd.Timestamp('2020-03-14T15:32:52.192548651')
1209-
>>> fmt = convert_strftime_format('%Y-%m-%d %X')
1209+
>>> fmt = convert_strftime_format('%Y-%m-%dT%H:%M:%S')
12101210
>>> ts.fast_strftime(fmt)
1211-
'2020-03-14 15:32:52'
1211+
'2020-03-14T15:32:52'
12121212
"""
12131213
return fmt_str % dict(
12141214
year=self.year, month=self.month, day=self.day, hour=self.hour,

0 commit comments

Comments
 (0)