union#
- geetools.ee_list.ListAccessor.union(other)#
Compute the union of the current list and the
otherlist.This list will drop duplicated items.
- Parameters:
other (list | ee.List) – The list to compute the union with.
- Returns:
A list of strings corresponding to the union of the current list and the
otherlist.- Return type:
Examples
import ee, geetools from geetools.utils import initialize_documentation initialize_documentation() l1 = ee.List(["1", "2", "3"]) l2 = ee.List(["2", "3", "4"]) l1.geetools.union(l2).getInfo()
['1', '2', '3', '4']