def split_features_target(df, target_name):
    """Split features and target into separate tables."""
    target = df.loc[:, target_name]
    features = df.drop(target_name, axis=1)
    return features, target