def METHOD_NAME(self, resources):
    rows = [[r['id'], r['_cost'], 'USD'] for r in resources]
    cost = {
        'columns': [
            Column('ResourceId'),
            Column('PreTaxCost'),
            Column('Currency'),
        ],
        'rows': rows
    }
    cost = namedtuple("Cost", cost.keys())(*cost.values())
    return cost