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

Function select_columns

Solutions/7_4/ticker.py:9–11  ·  view source on GitHub ↗
(rows, indices)

Source from the content-addressed store, hash-verified

7import time
8
9def select_columns(rows, indices):
10 for row in rows:
11 yield [row[index] for index in indices]
12
13def convert_types(rows, types):
14 for row in rows:

Callers 1

parse_stock_dataFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected