removeProperties#

geetools.FeatureAccessor.removeProperties(properties)#

Remove properties from a feature.

Parameters:

properties (list[str] | ee.List) – List of properties to remove.

Returns:

The feature without the properties.

Return type:

ee.Feature

Example

import ee, geetools
from geetools.utils import initialize_documentation

initialize_documentation()

feature = ee.Feature(None).set("foo", "bar", "baz", "foo")
feature = feature.geetools.removeProperties(["foo"])
feature.getInfo()
{'type': 'Feature', 'geometry': None, 'properties': {'baz': 'foo'}}