custom_tools.development_tools package
Submodules
custom_tools.development_tools.clean_data module
- custom_tools.development_tools.clean_data.keep_necessary_fields(input_layers: list[str], list_of_fields: list[str] = None)[source]
- What:
Deletes all fields from the input feature class except for a fields specified in a list.
- How:
Retrieves all fields from the input feature. It has a static set of fields always to be kept regardless of parameter input. It then removes all static and provided fields from the list of fields to remove. Then deletes all unspecified fields.
- Parameters:
input_layer (str) – The input feature to clean up.
list_of_fields (list[str]) – The fields to be kept in addition to static fields.
:param : param list_of_fields: :param : param input_layers: