I have a time-idexed data that must be resampled:
interval = pd.Timedelta(1/8, "s") resampled_df = df[["T", "N"]].resample(interval)