def load(file):
fp = open(file)<EOL>reader = csv.reader(fp)<EOL>headers = next(reader)<EOL>costs = Costs(headers)<EOL>for line in reader:<EOL><INDENT>data = {}<EOL>for i in range(<NUM_LIT:0>, len(headers)):<EOL><INDENT>data[headers[i]] = line[i]<EOL><DEDENT>data['<STR_LIT>'] = decimal.Decimal(data['<STR_LIT>'])<EOL>data['<STR_LIT>'] = decimal.Decimal(data['<STR_LIT>'])<EOL>costs.add(data)<EOL><DEDENT>fp.close()<EOL>return costs<EOL>
This function expects a path to a file containing a
**Detailed billing report with resources and tags**
report from AWS.

It returns a ``Costs`` object containing all of the lineitems
from that detailed billing report