In newer versions of pandas, pd.date_range no longer uses the keyword "closed" this should be replaced by "inclusive"