xxxxxxxxxx
s = re.sub("^\d+\s|\s\d+\s|\s\d+$", " ", s)
xxxxxxxxxx
value = '12 QZR 44A'
def remove_numbers(name):
return re.sub(r'\w*\d\w*', '', name).strip()
value.apply(remove_numbers)
xxxxxxxxxx
#remove any number from a string
string = 'abc123'
remove_num = ''.join(i for i in string if not i.isdigit()