Converting the data back to a time series