join#

geetools.ee_list.ListAccessor.join(separator=', ')#

Format a list to a string.

Same as the join method but elements that cannot be stringtified will be returned as the object type.

Parameters:

separator (str | ee.String) – The separator to use.

Returns:

A string with the list elements separated by commas.

Return type:

ee.String

Examples

import ee, geetools
from geetools.utils import initialize_documentation

initialize_documentation()

l = ee.List(['a', 1, ee.Image(0)])
l = l.geetools.join()
l.getInfo()
'a, 1, Image'