I'm looking for a field calculator Python statement to delete only the first two letters of string entries. For Ex:
!Name!.strip([0:2])
I know this syntax is incorrect.
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.
Sign up to join this communityI'm looking for a field calculator Python statement to delete only the first two letters of string entries. For Ex:
!Name!.strip([0:2])
I know this syntax is incorrect.
You slice the string to be the third character through the end of the string (strings are zero indexed).
!Name![2:]