Return the Timestamp representation of the Period.
Uses the target frequency specified at the part of the period specified by how, which is either Start or Finish.
Target frequency. Default is âDâ if self.freq is week or longer and âSâ otherwise.
One of âSâ, âEâ. Can be aliased as case insensitive âStartâ, âFinishâ, âBeginâ, âEndâ.
Examples
>>> period = pd.Period('2023-1-1', freq='D') >>> timestamp = period.to_timestamp() >>> timestamp Timestamp('2023-01-01 00:00:00')
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4