So I've downloaded a table from SQL, and I'm now performing operations on it. Two of the columns are Start_Date and Maturity_Date, and I'm looking to subtract the two of them and then divide them by another column. I've figured out how to subtract them using this code:
df['START_DATE']=pd.to_datetime(df['START_DATE'])
df['MATURITY_DATE']=pd.to_datetime(df['MATURITY_DATE'])
df['c']=df['MATURITY_DATE']-df['START_DATE']
df['d']=df['c'].div(df['TERM'], axis=0)
However, when I've divided 'c', which is in datetime, by 'Term', which is in int form, my new df['d'] looks like "60 days 4:00:00". I don't want it to be dates, but I want df['d'] to be rounded to the nearest integer and me to be able to perform operations on it as if its an integer. Essentially, how do I turn df['d'] into the nearest integer?