rename_index¶
In [ ]:
rename_index(source: str,
dest: str,
overwrite: bool = False,)
Renames a spatial index.
Parameters¶
Name | Type | Optional | Description |
---|---|---|---|
source | str | ❌ | Current name of the spatial index. |
dest | str | ❌ | New name of the spatial index. |
overwrite | bool | ✓ | BOOLEAN value that specifies whether to overwrite the index, if an index exists. |
Returns¶
bool : True if the index was renamed, False otherwise.
Example¶
In [33]:
from verticapy.geo import *
describe_index()
Out[33]:
In [34]:
rename_index("world_polygon", "world_polygon_test")
Out[34]:
In [35]:
describe_index()
Out[35]: