The error happens because you're trying to assign 3600 timestamps as the index (rows) to a DataFrame that only has 200 rows. The number of items in the index must match the number of rows in the data, as you say the original data has 200 index and in the error it says 3600, 3600.