Preface: In date processing, some functions use corresponding time symbols to represent time. The common symbols are as follows:
- You can view the pandas documentation
sequentially
- generate time series
- Code: pd.date_range(start='2021-01-01', end='2021-01-31', freq='5D') # start: 2021-01-01, end: 2021-01-31, interval 5 days
- Parameters: start: start date; end: end date; freq: time frequency; periods: number of generated periods
- time series addition and subtraction
- example
- example
- time forward (future) offset
- Time offset backwards (in the past)
- instantiation date
- Function: The instantiated date can use some date processing methods that come with python
- Example: