geetools.DictionaryAccessor.fromPairs#
- geetools.DictionaryAccessor.fromPairs(list)#
Create a dictionary from a list of [[key, value], …]] pairs.
- Parameters:
list (geetools.types.ee_list) – A list of pairs (key, value).
- Returns:
A dictionary using the pairs.
- Return type:
ee.Dictionary
Examples
import ee, geetools ee.Initialize() d = ee.Dictionary.geetools.fromPairs([["foo", 1], ["bar", 2]]) d.getInfo()