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

Method from_row

Solutions/3_5/stock.py:12–14  ·  view source on GitHub ↗
(cls, row)

Source from the content-addressed store, hash-verified

10
11 @classmethod
12 def from_row(cls, row):
13 values = [func(val) for func, val in zip(cls._types, row)]
14 return cls(*values)
15
16 @property
17 def shares(self):

Callers 1

read_csv_as_instancesFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected