Remove the index associated with this column. This method does nothing if the column is not indexed. The removed index can be created again by calling the :meth:`Column.create_index` method.
(self)
| 3939 | self._do_reindex(dirty=True) |
| 3940 | |
| 3941 | def remove_index(self) -> None: |
| 3942 | """Remove the index associated with this column. |
| 3943 | |
| 3944 | This method does nothing if the column is not indexed. The removed |
| 3945 | index can be created again by calling the :meth:`Column.create_index` |
| 3946 | method. |
| 3947 | |
| 3948 | """ |
| 3949 | self._table_file._check_writable() |
| 3950 | |
| 3951 | # Remove the index if existing. |
| 3952 | if self.is_indexed: |
| 3953 | index = self.index |
| 3954 | index._f_remove() |
| 3955 | self.table._set_column_indexing(self.pathname, False) |
| 3956 | |
| 3957 | def close(self) -> None: |
| 3958 | """Close the column.""" |