here is my input:
import pandas as pd
dt_one = pd.to_datetime('2015/5/25') - pd.tseries.offsets.QuarterEnd()
dt_two = pd.to_datetime('2016/9/15') - pd.tseries.offsets.QuarterEnd()
here is my output:
(dt_two - dt_one)
Out[75]: Timedelta('457 days 00:00:00')
however, i desire to convert the above time delta from days in between two dates to quarters in between those two dates. How can I achieve this? The output should be '5'