def divide(dataset, target_column):
    """
    Divides the dataset in X and y.
    This function is called inside prepare_data function (see below) in order to prepare data.

    :param dataset:
    :param target_column:
    :return: X and y
    """
    X = dataset.drop(columns=[target_column])
    y = dataset[target_column]

    return X, y