I have a data frame as taken from SDSS database. Example data is here.
I want to remove the character \'b\' from data[\'class\']. I tried
data[\'class\']
You're working with byte strings. You might consider str.decode:
str.decode
data['class'] = data['class'].str.decode('utf-8')