how to calculate number of datapoints within a given time interval?
The answer given by @Aditya is very good and educational despite the fact that the how is deprecated. So the right answer would be as follows:
df.resample(&quot;15T&quot;).agg({'count':'sum'})