df1['01 h'] =df1['15min'].rolling(window=4,center=False).sum()
Note that the window=4 parameter means that it will accumulate 4 lines of 15 minute data, resulting in 1 hour precipitation. This parameter can be changed to whatever duration you want.
Python programming, with examples in hydraulic engineering and in hydrology.
df1['01 h'] =df1['15min'].rolling(window=4,center=False).sum()