delete#

geetools.ee_list.ListAccessor.delete(index)#

Delete an element from a list.

Parameters:

index (int | ee.Number) – The index of the element to delete.

Returns:

The list without the element at the given index.

Return type:

ee.List

Examples

import ee, geetools
from geetools.utils import initialize_documentation

initialize_documentation()

l = ee.List(["a", "b", "c"])
l.geetools.delete(1).getInfo()
['a', 'c']