MCPcopy Create free account
hub / github.com/dabeaz-course/practical-python / make_dicts

Function make_dicts

Solutions/6_12/ticker.py:17–19  ·  view source on GitHub ↗
(rows, headers)

Source from the content-addressed store, hash-verified

15 yield [func(val) for func, val in zip(types, row)]
16
17def make_dicts(rows, headers):
18 for row in rows:
19 yield dict(zip(headers, row))
20
21def parse_stock_data(lines):
22 rows = csv.reader(lines)

Callers 1

parse_stock_dataFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected