File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -235,6 +235,8 @@ inferred frequency upon creation:
235
235
236
236
pd.DatetimeIndex([' 2018-01-01' , ' 2018-01-03' , ' 2018-01-05' ], freq = ' infer' )
237
237
238
+ .. _timeseries.converting.format :
239
+
238
240
Providing a format argument
239
241
~~~~~~~~~~~~~~~~~~~~~~~~~~~
240
242
@@ -319,6 +321,12 @@ which can be specified. These are computed from the starting point specified by
319
321
pd.to_datetime([1349720105100 , 1349720105200 , 1349720105300 ,
320
322
1349720105400 , 1349720105500 ], unit = ' ms' )
321
323
324
+ .. note ::
325
+
326
+ The ``unit `` parameter does not use the same strings as the ``format `` parameter
327
+ that was discussed :ref: `above<timeseries.converting.format> `). The
328
+ available units are listed on the documentation for :func: `pandas.to_datetime `.
329
+
322
330
Constructing a :class: `Timestamp ` or :class: `DatetimeIndex ` with an epoch timestamp
323
331
with the ``tz `` argument specified will currently localize the epoch timestamps to UTC
324
332
first then convert the result to the specified time zone. However, this behavior
You can’t perform that action at this time.
0 commit comments