I have Data Frame like below:
import pandas as pd
df = pd.DataFrame()
df["date"] = pd.date_range("2015", periods=5)
And list of holidays like: holidays = ["30.12.2014", "02.01.2015", "10.10.2015"]
And I would like to calculate for each date in df, number of days until next and since last holiday day from "holidays" list. So I need result like below (if of course I correctly calculate number of days, but somethng like below):
