I have two string variables which contain dates in yyyy-mm-dd format as follows :
date1 = \'2011-05-03\' date2 = \'2011-05-10\'
I want to write
import pandas as pd date1 = '2011-05-03' date2 = '2011-05-10' pd.date_range(start = date1,end = date2)