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)
| 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 | """ |