def interevent_time_recharges(recharges):
    """
    Return the distribution of time between consecutive recharges
    of the user.
    """
    time_pairs = pairwise(r.datetime for r in recharges)
    times = [(new - old).total_seconds() for old, new in time_pairs]
    return summary_stats(times)
def interevent_time_recharges ( recharges ) : time_pairs = pairwise ( r . datetime for r in recharges ) times = [ ( new - old ) . total_seconds ( ) for old , new in time_pairs ] return summary_stats ( times )
Return the distribution of time between consecutive recharges
    of the user.