I am trying to remove all b''
from my dataframes ( i.e. b'stackoverflow'
to stackoverflow
).
I came across Removing b'' from string column in a pandas dataframe however it just mentions doing this to one column.
Is there a way to apply this to all my columns in my dataframe?
Note: all my columns are object
types.
I have tried:
df = df.astype(str)
df = df.str.decode('utf-8')