geofileops.rename_column#
- geofileops.rename_column(path: Union[str, PathLike[Any]], column_name: str, new_column_name: str, layer: Optional[str] = None)#
Rename the column specified.
- Parameters:
path (PathLike) – the file path.
column_name (str) – current column name.
new_column_name (str) – new column name.
layer (Optional[str]) – layer name. If not specified, and there is only one layer in the file, this layer is used. Otherwise exception.