Date_range example

  Uncategorized

start_date=dataWorld.index[0]
end_date=dataWorld.index[-1]
dateData=pd.date_range(start=start_date,end=end_date)
dataWorld['Date']=dateData
dataWorld=dataWorld.set_index('Date')

forecastDays=60

dateForecast= pd.date_range(start=end_date,periods=forecastDays+1)[1:] 
dateObsForecast=dateData.append(dateForecast)