(data, period_override=None)
return (data, period)
Resamples a data set to the min level of granularity

      data : pandas DataFrame
        input Pandas DataFrame
      period_override : int
        indicates whether resampling should be done with overridden value instead of min (1440)
Resamples a data set to the min level of granularity
Resamples a data set to the min level of granularity
def _resample_to_min(data, period_override=None):
    """
    Resamples a data set to the min level of granularity

      data : pandas DataFrame
        input Pandas DataFrame
      period_override : int
        indicates whether resampling should be done with overridden value instead of min (1440)

    """
    data = data.resample('60s', label='right').sum()
    if _override_period(period_override):
        period = period_override
    else:
        period = 1440
    return (data, period)
def _resample_to_min ( data , period_override = None ) : data = data . resample ( '60s' , label = 'right' ) . sum ( ) if _override_period ( period_override ) : period = period_override else : period = 1440 return ( data , period )