0

i give rename csv location path to variable. it give errror unicodedecodeError

def __init__(self):
    self.ticker_list_filename = 'E:/materials/AI/github/Sentiment-Analysis-in-Event-Driven-Stock-Price-Movement-Prediction-master/input/tickerList.csv',

UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 652: character maps to <undefined>
Jérôme
  • 13,328
  • 7
  • 56
  • 106
Integraty_dev
  • 500
  • 3
  • 18
  • The error occurs when you open the file, right? Please show the whole code and more importantly the whole traceback including the error. – Jérôme Jan 07 '19 at 09:50
  • 1
    I think you might be missing `encoding="utf8"` but cannot comment until the entire code is shown – Sabesh Jan 07 '19 at 09:54
  • how to give missing encoding="utf8" to this formate self.ticker_list_filename = 'E:/materials/AI/github/Sentiment-Analysis-in-Event-Driven-Stock-Price-Movement-Prediction-master/input/tickerList.csv', – Integraty_dev Jan 07 '19 at 10:31
  • The encoding must be passed when opening the file, not when defining its path. Check duplicate Q/A. – Jérôme Jan 07 '19 at 14:06

0 Answers0