File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ Converting to Timestamps
118
118
119
119
To convert a Series or list-like object of date-like objects e.g. strings,
120
120
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
122
122
is converted to a DatetimeIndex:
123
123
124
124
.. ipython :: python
@@ -166,6 +166,12 @@ often epochs are stored in another ``unit`` which can be specified:
166
166
167
167
Epoch times will be rounded to the nearest nanosecond.
168
168
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
+
169
175
.. _timeseries.daterange :
170
176
171
177
Generating Ranges of Timestamps
You can’t perform that action at this time.
0 commit comments