Hello guys, I am having some problems with my code and would appreciate any help.
I am trying to convert a csv file into html using pandas in latest version of pycharm and python 3.5.0 but i am getting unicode encode error. I added the encoding="ISO-8859-1" but still comes with error.
import pandas as
pd injury = pd.read_csv('C:\\Users\\Apple\\Desktop\\injury1.csv', encoding="ISO-8859-1",index_col=0)
injury.to_html('injury.html')
output
UnicodeEncodeError: 'charmap' codec can't encode character '\x96' in position 34433: character maps to <undefined>
Thanks in advance.