Good morning,
I am a new python user and I am trying to replicate the following excel function in python:
=concatenate(left(H2,search(" ",H2,1)-1),if(LEN(right(H2,LEN(H2)-search(" ",H2,1)))=2,"00",if(LEN(right(H2,LEN(H2)-search(" ",H2,1)))=3,"0","")),right(H2,LEN(H2)-search(" ",H2,1)),"-KG")
I am trying to convert Highways into a format my computer program(arcgis) reads, basically turn my csv column format from:
the right column into the left column, so basically keep the two letter in the front (ex. US,FM,SL, CR) adding zeros in front making it a 4 digit highway always and adding "-KG" to the end.
thanks