INNER CODE UNIT · Python

total_spent

alteryx/compose · composeml/conftest.py:30

    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():
    data = [

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…