MCPcopy
hub / github.com/tradytics/surpriver / get_most_frequent_key

Method get_most_frequent_key

data_loader.py:71–75  ·  view source on GitHub ↗
(self, input_list)

Source from the content-addressed store, hash-verified

69 self.stocks_list = stocks_list
70
71 def get_most_frequent_key(self, input_list):
72 counter = collections.Counter(input_list)
73 counter_keys = list(counter.keys())
74 frequent_key = counter_keys[0]
75 return frequent_key
76
77 def get_data(self, symbol):
78 """

Callers 1

get_dataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected