Sample dataframe is as follows:-
import pandas as pd import numpy as np from datetime import datetime start = datetime(2011, 1, 1) end = datetime(2012, 1, 1) ind