geetools.ListAccessor.replaceMany#
- geetools.ListAccessor.replaceMany(replace)#
Replace many values in a list.
- Parameters:
replace (geetools.types.ee_dict) – 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:
ee.List
Examples
import ee, geetools ee.Initialize() l = ee.List(["a", "b", "c"]) replace = ee.Dictionary({"a": "foo", "c": "bar"}) l = l.geetools.replaceMany(replace) l.getInfo()