MCPcopy Create free account
hub / github.com/scanny/python-pptx / __len__

Method __len__

src/pptx/chart/data.py:356–363  ·  view source on GitHub ↗

Return the count of the highest level of category in this sequence. If it contains hierarchical (multi-level) categories, this number will differ from :attr:`category_count`, which is the number of leaf nodes.

(self)

Source from the content-addressed store, hash-verified

354 return self._categories.__getitem__(idx)
355
356 def __len__(self):
357 """
358 Return the count of the highest level of category in this sequence.
359 If it contains hierarchical (multi-level) categories, this number
360 will differ from :attr:`category_count`, which is the number of leaf
361 nodes.
362 """
363 return self._categories.__len__()
364
365 def add_category(self, label):
366 """

Callers 2

__len__Method · 0.45
__len__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected