12/11/2022

pandas time series resample option

price.resample('M').count().plot(title='Monthly Counts') 

 

W : weekly frequency
M : month end frequency
SM : semi-month end frequency (15th and end of month)
Q : quarter end frequency