pandas.Series.to_timestamp

Series.to_timestamp(freq=None, how='start', copy=True)[source]

Cast to DatetimeIndex of Timestamps, at beginning of period.

Parameters
freqstr, default frequency of PeriodIndex

Desired frequency.

how{‘s’, ‘e’, ‘start’, ‘end’}

Convention for converting period to timestamp; start of period vs. end.

copybool, default True

Whether or not to return a copy.

Returns
Series with DatetimeIndex