def split_data(data):
    """
    A function drops data and splits the target

    Parameters
    ----------
    data -  a pandas dataframe, including target to be dropped

    Return
    -------
    A tuple of the observations, target
    """
    features = data.drop(columns = ['target','education', 'fnlwgt', 'capital_gain', 'capital_loss'])
    target = data['target']
    return features, target