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

Method __init__

Solutions/2_6/colreader.py:7–9  ·  view source on GitHub ↗
(self, columns)

Source from the content-addressed store, hash-verified

5
6class DataCollection(collections.Sequence):
7 def __init__(self, columns):
8 self.column_names = list(columns)
9 self.column_data = list(columns.values())
10
11 def __len__(self):
12 return len(self.column_data[0])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected