Skip to content

Commit e5078a6

Browse files
committed
FIX final tweaks
1 parent fcfe3f3 commit e5078a6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

doc/source/timeseries.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Converting to Timestamps
118118

119119
To convert a Series or list-like object of date-like objects e.g. strings,
120120
epochs, or a mixture, you can use the ``to_datetime`` function. When passed
121-
a Series, this returns a Series (with the same index), whilst a list-like
121+
a Series, this returns a Series (with the same index), while a list-like
122122
is converted to a DatetimeIndex:
123123

124124
.. ipython:: python
@@ -166,6 +166,12 @@ often epochs are stored in another ``unit`` which can be specified:
166166

167167
Epoch times will be rounded to the nearest nanosecond.
168168

169+
Take care, ``to_datetime`` may not act as you expect on mixed data:
170+
171+
.. ipython:: python
172+
173+
pd.to_datetime([1, '1'])
174+
169175
.. _timeseries.daterange:
170176

171177
Generating Ranges of Timestamps

0 commit comments

Comments
 (0)