job = ''.join([i for i in job if not i.isdigit()])
Error text:
job = ''.join([i for i in job if not i.isdigit()]) TypeError: 'float' object is not iterable
Because isdigit
is a string method, I assume you are trying to iterate over the characters in a string and remove all digits. If this is the case, you can cast job
to be a string in the list comprehension:
job = ''.join([i for i in str(job) if not i.isdigit()])