def holdout(p, dataframe):
    """
    Separate dataframe randomly into training
    and testing sets

    Parameters:
        p: percentage of datagrame used for training
        dataframe: pandas dataframe that should be  divided

    Return:
        testing_set
        training_set
    """


    train=dataframe.sample(frac=p)
    test=dataframe.drop(train.index)

    return (train, test)