AnsweredAssumed Answered

Remove and replace first space character from a field in an attribute table

Question asked by sgalloway on Apr 19, 2019
Latest reply on Apr 22, 2019 by jimcousins

How can I remove and replace the first space characters from a field (a person's name)  in an attribute table?  Adn replace it with a comma.

FROM: Doe M Jane TO: Doe, M Jane.

I have been switching the names to Jane Doe by the following Python:

" ".join( !PRIMARY_OWNER! .split(", ").__reversed__())

This works perfectly but quite a few names do not include a comma.

Thanks.

Outcomes