Is there a more efficient way of doing this below? I want to have the difference in years between two dates as a single scalar. Any suggestions are welcome.
I think what you're looking for is:
difference_in_years = difference.dt.days / 365.25