from ballet import Feature
from ballet.eng import SimpleFunctionTransformer

input = ["Overall Qual", "Overall Cond"]


def calc_qual(df):
    return df["Overall Qual"] - df["Overall Cond"]


transformer = SimpleFunctionTransformer(calc_qual)
name = "Qual"
feature = Feature(input=input, transformer=transformer, name=name)

d85a58733f5eea8c9ac7c19e244beed6bb6ea6d7
<mask token>

<mask token>


def calc_qual(df):
    return df['Overall Qual'] - df['Overall Cond']


<mask token>

<mask token>
input = ['Overall Qual', 'Overall Cond']


def calc_qual(df):
    return df['Overall Qual'] - df['Overall Cond']


transformer = SimpleFunctionTransformer(calc_qual)
name = 'Qual'
feature = Feature(input=input, transformer=transformer, name=name)

from ballet import Feature
from ballet.eng import SimpleFunctionTransformer
input = ['Overall Qual', 'Overall Cond']


def calc_qual(df):
    return df['Overall Qual'] - df['Overall Cond']


transformer = SimpleFunctionTransformer(calc_qual)
name = 'Qual'
feature = Feature(input=input, transformer=transformer, name=name)

from ballet import Feature
from ballet.eng import SimpleFunctionTransformer

input = ["Overall Qual", "Overall Cond"]


def calc_qual(df):
    return df["Overall Qual"] - df["Overall Cond"]


transformer = SimpleFunctionTransformer(calc_qual)
name = "Qual"
feature = Feature(input=input, transformer=transformer, name=name)
