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

Function parse_stock_data

Solutions/8_4/follow.py:42–49  ·  view source on GitHub ↗
(lines)

Source from the content-addressed store, hash-verified

40 yield r
41
42def parse_stock_data(lines):
43 rows = splitter(lines)
44 records = make_records(rows,['name','price','date','time',
45 'change','open','high','low','volume'])
46 records = unquote(records,["name","date","time"])
47 records = convert(records,float,['price','change','open','high','low'])
48 records = convert(records,int,['volume'])
49 return records
50
51# Sample use
52if __name__ == '__main__':

Callers 1

follow.pyFile · 0.85

Calls 4

splitterFunction · 0.85
make_recordsFunction · 0.85
unquoteFunction · 0.85
convertFunction · 0.85

Tested by

no test coverage detected