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

Method __len__

Solutions/2_6/colreader.py:11–12  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

9 self.column_data = list(columns.values())
10
11 def __len__(self):
12 return len(self.column_data[0])
13
14 def __getitem__(self, index):
15 return dict(zip(self.column_names,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected