MCPcopy Create free account
hub / github.com/GonVas/tickerrain / processed_df

Function processed_df

process.py:317–333  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

315
316
317def processed_df():
318 df = create_pandas_redis()
319
320 print('Processing -> Getting Tickers')
321 df['tickers'] = parallelize_on_rows(df, p_tickers)
322
323 print('Processing -> NLP processing')
324 df["ents"], df["sentiment"] = zip(*df.apply(nlp_processing, axis=1))
325 #df_nlps = parallelize_on_rows(df, nlp_processing)
326 #df["ents"], df["sentiment"] = zip(*df_nlps)
327
328 df_3, df_1 = df[df.apply(partial(day_filter, day=3), axis=1)], df[df.apply(partial(day_filter, day=1), axis=1)]
329
330 print('Processing -> Calculating for each ticker')
331 timed_df = calculate_df_timed(df, time_mins=30)
332 plot_df(timed_df)
333 return calculate_df(df), calculate_df(df_3), calculate_df(df_1), df
334
335
336

Callers 1

processing_lastFunction · 0.85

Calls 5

create_pandas_redisFunction · 0.85
parallelize_on_rowsFunction · 0.85
calculate_df_timedFunction · 0.85
plot_dfFunction · 0.85
calculate_dfFunction · 0.85

Tested by

no test coverage detected