def get_consecutive_index(df):
    """Given a dataframe find rows that have consecutive indices

    Parameters
    ----------
    df  :   pandas.DataFrame object

    Returns
    -------
    list of indices that are consecutive
    """

    indices = list()
    for n in range(len(df)):
        i = df.index[n]
        if n+1 < len(df):
            i1 = df.index[n+1]
            indices.append(i1 - i)
        else:
            indices.append(1)
    
    return [n for n, i in enumerate(indices) if i==1]