I have a column with text which is stored as a object tpye in a pandas dataframe. The following two codes to not work. The required column is still object type.
TD_Eco_Comb_c['CountryPair'] = TD_Eco_Comb_c['CountryPair'].astype('|S')
TD_Eco_Comb_c['CountryPair'] = TD_Eco_Comb_c['CountryPair'].astype('str')
Any advice?