Skip to content

Commit fe530f0

Browse files
committed
DOC: whatsnew Timestamp addition example fix up
1 parent e05f66a commit fe530f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/source/whatsnew/v0.18.0.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@ as opposed to
212212

213213
.. code-block:: python
214214

215-
In [3]: pd.Timestamp('1990315') + pd.Timestamp('19900315')
216-
ValueError:
215+
In [3]: pd.Timestamp('19900315') + pd.Timestamp('19900315')
216+
TypeError: unsupported operand type(s) for +: 'Timestamp' and 'Timestamp'
217217

218218
However, when wrapped in a ``Series`` whose ``dtype`` is ``datetime64[ns]`` or ``timedelta64[ns]``,
219219
the ``dtype`` information is respected.

0 commit comments

Comments
 (0)