MCPcopy Create free account
hub / github.com/dabeaz-course/python-mastery / read_csv_as_dicts

Function read_csv_as_dicts

Solutions/5_2/reader.py:43–45  ·  view source on GitHub ↗
(filename, types)

Source from the content-addressed store, hash-verified

41 return self.cls.from_row(row)
42
43def read_csv_as_dicts(filename, types):
44 parser = DictCSVParser(types)
45 return parser.parse(filename)
46
47def read_csv_as_instances(filename, cls):
48 parser = InstanceCSVParser(cls)

Callers

nothing calls this directly

Calls 2

DictCSVParserClass · 0.70
parseMethod · 0.45

Tested by

no test coverage detected