def replace(field): if "_" in field: return field.split("_")[0] else: return field
replace(<fieldname>)
string = 'Saur_5' string.split("_")
string.split("_")[0]
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.