replaceMany#
- geetools.ee_list.ListAccessor.replaceMany(replace)#
Replace many values in a list.
- Parameters:
replace (dict | ee.Dictionary) – the dictionary with the values to replace. the keys are the values to replace and the values are the new values.
- Returns:
A list with the values replaced.
- Return type:
Examples
import ee, geetools from geetools.utils import initialize_documentation initialize_documentation() l = ee.List(["a", "b", "c"]) replace = ee.Dictionary({"a": "foo", "c": "bar"}) l = l.geetools.replaceMany(replace) l.getInfo()
['foo', 'b', 'bar']