Artificial Intelligence, Sentiment Analysis, Finance, Stock Market, Python.
data.rename(columns={'finbert_sentiment_score': 'sentiment'}) data.set_index('Date', inplace=True) # Edit the PandasData feeder to accept the last column as holding the sentiment scores class PandasSent(bt.feeds.PandasData): lines = (('sentiment'),) params = (('sentiment',-1),) # Pass the data into