noqa: twitter_api.py

This commit is contained in:
Christian Clauss
2021-03-06 11:47:18 +01:00
parent 5af911ae40
commit 9eeecf8015

View File

@@ -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])