I have a dataset where all the numeric variable values are appearing in b'123' byte object form.
I tried the following code: df['var'].str.decode('utf-8')
But the var becomes NaN for all the data points.
How do I get rid of the b''
from b'123'
variable value. My variable types show type object but I need numeric value?