INNER CODE UNIT · Python
value
alteryx/compose · composeml/conftest.py:31
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():
data = [
"customer_id,time,total_spent",