resample: resampling function that can increase or decrease the sampling frequency by time, Fill_method can use different filling methods.
Freq parameter enumeration for Pandas.data_range:
| Alias |
Description |
| B |
Business Day Frequency |
| C |
Custom Business Day Frequency |
| D |
Calendar Day Frequency |
| W |
Weekly frequency |
| M |
Month End Frequency |
| Sm |
Semi-month End Frequency (15th and end of month) |
| Bm |
Business Month End Frequency |
| Cbm |
Custom Business Month End frequency |
| Ms |
Month Start frequency |
| Sms |
Semi-month Start Frequency (1st and 15th) |
| Bms |
Business Month start frequency |
| CBMS |
Custom Business Month Start frequency |
| Q |
Quarter End frequency |
| BQ |
Business Quarter End frequency |
| Qs |
Quarter Start frequency |
| BQS |
Business Quarter Start frequency |
| A, Y |
Year End frequency |
| BA, by |
Business Year End frequency |
| As, YS |
Year Start frequency |
| BAS, BYS |
Business year Start frequency |
| Bh |
Business Hour Frequency |
| H |
Hourly frequency |
| T, Min |
minutely frequency |
| S |
Secondly frequency |
| L, MS |
Milliseconds |
| U, US |
microseconds |
| N |
nanoseconds |
[Reading notes] Python Data Analysis (11) Economic and financial data applications