Interate through a Pandas dataframe <p>I want to upsample my data. It is hourly data that I want to turn into 5 minute data by resampling and filling in the missing data with a linear interpolation between the hours. </p> <p><a href="https://dl.dropboxusercontent.com/u/100778374/Wind%20Data/Wind_Locations.csv" rel="nofollow">Wind_locations.csv</a>, the data frame has a column called 'CH'. I want to iterate through each row of 'CH' and subtract the next row from the current. This is how I think it should work, but it is not, any suggestions?</p> <p>I tried using<br> <code>data = pd.read_csv('Wind_Locations.csv')</code><br> <code>data.CH.resample('5min', how='sum')</code> </p> <p>But I get the error <code>TypeError: Only valid with DatetimeIndex or PeriodIndex</code></p> <p>Any suggestions?</p>