def get_X_y(df, target_name):
    """Split DataFrame to feature and target
    
    Parameters
    ----------
    df : DataFrame
    target_name : str
        Name of target column present in DataFrame
    
    Returns
    -------
    X : DataFrame
        Original DataFrame without target column
    y : Series
        Target Series
    
    """
    
    y = df[target_name]
    X = df.drop(target_name, axis=1)
    return X, y