Return the Index instance associated with this column. Return `None` if the column is not indexed. See :ref:`IndexClassDescr`.
(self)
| 3567 | |
| 3568 | @property |
| 3569 | def index(self) -> Index | None: |
| 3570 | """Return the Index instance associated with this column. |
| 3571 | |
| 3572 | Return `None` if the column is not indexed. |
| 3573 | |
| 3574 | See :ref:`IndexClassDescr`. |
| 3575 | """ |
| 3576 | index_path = _index_pathname_of_column_( |
| 3577 | self._table_path, self.pathname |
| 3578 | ) |
| 3579 | try: |
| 3580 | index = self._table_file._get_node(index_path) |
| 3581 | except NodeError: |
| 3582 | index = None # The column is not indexed |
| 3583 | return index |
| 3584 | |
| 3585 | @lazyattr |
| 3586 | def _itemtype(self) -> np.dtype: |
no test coverage detected