INNER CODE UNIT · Python
total_spent_fn
alteryx/compose · composeml/conftest.py:29
def total_spent_fn():
def total_spent(df):
value = df.amount.sum()
return value
return total_spent
@pytest.fixture(scope="session")
def unique_amounts_fn():
def unique_amounts(df):
return df.amount.nunique()
return unique_amounts
@pytest.fixture
def total_spent():