def Resample(df_z, kind, time):
    """Resamples the data frame from 1 second resolution to either
            1 Hour or 1 Day resolution

        Arguments:
            df_z - full data frame
            kind - Water type, either hotIn or coldIn
            time - resolution, either 1H or 24H
        Returns:
            df_a - resampled data frame
    """
    df_a = df_z[kind].resample(rule=time, base=0).sum() * (1 / 60)
    return df_a