def _df_from_to(_from, _to, df):
    """
    Returns the part of the dataframe where time is between _from and _to

    :param _from: Start of dataframe ['Time']
    :param _to: End of dataframe ['Time']
    :param df: Dataframe

    :return: new Dataframe where row['Time'] between _from and _to

    """

    mask = (_from <= df['Time']) & (df['Time'] < _to)
    return df[mask]