def replace(field): if "_" in field: return field.split("_")[0] else: return field
replace(<fieldname>)
string = 'Saur_5' string.split("_")
string.split("_")[0]
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.