IndexError: list index out of range
sapare542 opened this issue · 0 comments
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/flask/app.py", line 2073, in wsgi_app
response = self.full_dispatch_request()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/flask/app.py", line 1518, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/flask/app.py", line 1516, in full_dispatch_request
rv = self.dispatch_request()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/flask/app.py", line 1502, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/Users/ravisekharsapare/Downloads/stockprediction/Stock-Market-Prediction-Web-App-using-Machine-Learning-And-Sentiment-Analysis/main.py", line 479, in insertintotable
polarity,tw_list,tw_pol,pos,neg,neutral = retrieving_tweets_polarity(quote)
File "/Users/ravisekharsapare/Downloads/stockprediction/Stock-Market-Prediction-Web-App-using-Machine-Learning-And-Sentiment-Analysis/main.py", line 336, in retrieving_tweets_polarity
symbol = stock_full_form['Name'].to_list()[0][0:12]
IndexError: list index out of range