Working on ArcMap Desktop 10.8;
I have a point layer with a field called SITEROAD (string) from which I need to extract ONLY the first word before a space, and put it into a new field, STREETNAME.
Aberdeen way needs to be calculated to Aberdeen ACACIA WAY needs to be calculated to Acacia Aegean WY needs to be calculated to Aegean
I am trying:
def getFirst(inField): if inField is None: return None else: return inField.Split('')