MCPcopy Create free account
hub / github.com/FinancialComputingUCL/LOBFrame / find_substrings_in_string

Function find_substrings_in_string

loggers/analysis.py:21–22  ·  view source on GitHub ↗
(string_list, main_string)

Source from the content-addressed store, hash-verified

19import gzip
20
21def find_substrings_in_string(string_list, main_string):
22 return [s for s in string_list if s in main_string]
23
24def calculate_log_returns(series, step=50):
25 return np.log(series / series.shift(step)).dropna().reset_index(drop=True)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected