how to change a field to proper case

1247
4
02-02-2018 12:11 PM
ScottRowland1
New Contributor

how to change a field in all caps to a new field in proper case

0 Kudos
4 Replies
JayJohnson2
Occasional Contributor
0 Kudos
JayJohnson2
Occasional Contributor
Expression: ' '.join([i.capitalize() for i in !STATE_NAME!.split(' ')])  Expression Type: PYTHON_9.3
Expression: string.capwords(!STATE_NAME!, ' ')  Expression Type: PYTHON_9.3  Code Block: import string
Expression: MySub(!STATE_NAME!)  Expression Type: PYTHON_9.3  Code Block: def MySub(myfieldname):  import string   return string.capwords(myfieldname, ' ')
0 Kudos
JayJohnson2
Occasional Contributor
0 Kudos
JayJohnson2
Occasional Contributor
0 Kudos