def total_transactions_by_subacct(self, subaccount):
        return sum(
            t.amount for t in self.transactions if t.subaccount == subaccount)
Get the sum of all transactions for a given subaccount.
dataset/ETHPy150Open UDST/urbansim/urbansim/accounts.py/Account.total_transactions_by_subacct