(data)
return data.index[1] - data.index[0]
Generates the time difference used to determine granularity and
    to generate the period

      data : pandas DataFrame
        composed of input data
Generates the time difference used to determine granularity and
    to generate the period
Generates the time difference used to determine granularity and to generate the period
def _get_time_diff(data):
    """
    Generates the time difference used to determine granularity and
    to generate the period

      data : pandas DataFrame
        composed of input data
    """
    return data.index[1] - data.index[0]
def _get_time_diff ( data ) : return data . index [ 1 ] - data . index [ 0 ]