import logging


def prepare_data(df):
    """It is used to separate the dependent and iindependent features

    Args:
        df (pd.DataFrame): It is a dataframe

    Returns:
        tuple: returning dependent and independent variable tuples
    """
    logging.info("preparing the data by segregating the independent and depenedent variables")
    X = df.drop('y',axis = 1)
    y = df['y']

    return X,y