I'm trying to strip all characters to the right of the comma from a field named Details_Primary_Address. For some reason this doesn't work
!Details_Primary_Address1!.rstrip(",")
either does this
!Details_Primary_Address1!.rstrip(',')
I can just remove the comma like this
!Details_Primary_Address1!.replace(",", "")
but I want to also remove everthing after it (to the right).
Thanks in advance for the insight.
J