mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 13:01:38 +00:00
noqa: twitter_api.py
This commit is contained in:
@@ -166,7 +166,7 @@ def inference(l_args, s_ticker):
|
||||
n_pct = round(100 * n_pos / df_tweets["probability"].sum())
|
||||
else:
|
||||
n_neg = abs(df_tweets[df_tweets["prob_sen"] < 0]["prob_sen"].sum())
|
||||
n_pct = round(100 * n_neg / df_tweets["probability"].sum())
|
||||
n_pct = round(100 * n_neg / df_tweets["probability"].sum()) # noqa: F841
|
||||
|
||||
# Parse tweets
|
||||
dt_from = dateutil.parser.parse(df_tweets["created_at"].values[-1])
|
||||
|
||||
Reference in New Issue
Block a user