can someone explain to me the use of unicode_escape as an encoding argument in python 3.6?
问题 I work with large pandas dataframes on a daily basis, which gets fed information that we parse from a webAPI (xml encoding is utf-8) local to our network. After I feed the dataframe and export as a csv file I start getting encoding errors (local machine is cp1252) which I've had to deal with the past few weeks. The solution I finally found was [here][1] under tangfucious's response. df['crumbs'] = df['crumbs'].map(lambda x: x.encode('unicode-escape').decode('utf-8')) a line of code that takes