Skip to content

Tag: time-series

Downsampling time series data in pandas

I have timeseries data that looks like this: I would like to downsample my data from 15-minute frequencies to 1-hour frequencies. So, the first 4 rows above would be summed under 00:00 timestamp, then next 4 rows would be combined under 01:00. Is there an efficient way to make this happen? Answer Look at pand…

Combining weeks 52 and 0 with Python Datetime

I have a Pandas DataFrame with daily data that I’m trying to group by week number to sum some columns, and I notice that when years do not begin on Sunday, the data for the week spanning the end of one year and the beginning of the next do not cleanly sum, instead being broken into two groups. My code

Error with Pipeline for fourier featurizer

When I run above code. I get following error: TypeError: Last step of Pipeline should be of type BaseARIMA. ‘FourierFeaturizer(k=1, m=14)’ I don’t wish to use BaseARIMA. Just wish to use FourierFeaturizer is it possible? Answer Yes, it’s possible. Each FourierFeaturizer has a fit_trans…