B business day frequency
C custom business day frequency (experimental)
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 endfrequency
QS quarter start frequency
BQS business quarter start frequency
A 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
Hence if you want to calc the monthly sum of time series from 15th of last month to 14th of the current month and use last month as the index, an eg is shown below:
import pandas as pd
from datetime import timedelta
import numpy as np
index = pd.date_range('20200101', '20200331', freq='1D')
data = np.random.random(len(index))
a = pd.Series(index=index, data=data)
ret = a.resample('SM', closed='left', label='left').sum()
ret.index = ret.index - timedelta(days=1)
ret = ret.resample('M').sum()
ret.index = ret.index.strftime('%Y-%m')