def get_interactions(train):
    interaction_features = ['Age', 'Quantity']
    for (c1, c2) in combinations(interaction_features, 2):
        train[((c1 + '_mul_') + c2)] = (train[c1] * train[c2])
        train[((c1 + '_div_') + c2)] = (train[c1] / train[c2])
    return train
def get_interactions(train):
    interaction_features = ['Age', 'Quantity']
    for (c1, c2) in combinations(interaction_features, 2):
        train[((c1 + '_mul_') + c2)] = (train[c1] * train[c2])
        train[((c1 + '_div_') + c2)] = (train[c1] / train[c2])
    return train