I did one hot encoding on my categorical variables in my dataframe and my columns were renamed as per below..
before one hot encoding
d = {'PROD_ID': ['OM', 'RM', 'VL']
df = pd.DataFrame(data=d)
full_data = pd.get_dummies(data, drop_first=True)
After one hot encoding
full_data
PROD_ID_b'OM'
PROD_ID_b'VL'
PROD_ID_b'RM'
I need to remove b and '' from above dataframe, i.e i need PROD_ID_OM
PROD_ID_VL
PROD_ID_RM