I am using Python in the Field Calculator to split an address field and I cannot find the string function I need for my function. Basically, what I want to do is create a function to say if 'CIR' is in the string name return everything before 'CIR', but not 'CIR'. I am just trying to get the street name, not the street type in the field.
Here is what I have so far:
def street_name (st_name):
if ' CIR' in st_name:
I cannot find a string function to return everything to the left of 'CIR'. Thank in advance everyone.