W3cubDocs

/pandas 0.25

pandas.Series.to_timestamp

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

Cast to DatetimeIndex of Timestamps, at beginning of period.

Parameters:
freq : str, default frequency of PeriodIndex

Desired frequency.

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

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

copy : bool, default True

Whether or not to return a copy.

Returns:
Series with DatetimeIndex

© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.25.0/reference/api/pandas.Series.to_timestamp.html