Pre-processing of the time-series Dataset