I have a pandas DF that has many string elements that contains words like this:
\'Frost \'
Replace your function with this:
rawlossDF['damage_description'] = rawlossDF['damage_description'].map(lambda x: x.strip())
You almost had it right, you needed to get rid off the '' inside strip()
Alternatively you could use str.strip method:
rawlossDF['damage_description'] = rawlossDF['damage_description'].str.strip()