def train_test_split(df, frac):
    """Create a Train/Test split function for a dataframe and returns
    both the Training and Testing sets. Frac referes to the precent
    of data you would like to set aside for training"""

    train_split = df[: (int(len(df) * frac))]
    test_split = df[(int(len(df) * frac)):]
    return train_split, test_split