This commit is contained in:
efish 2018-11-21 10:10:19 +01:00
parent 9d971b44e5
commit a151ebd886

View File

@ -23,3 +23,14 @@ def gaussian(x, mu, sig):
y = np.exp(-np.power(x - mu, 2.) / (2 * np.power(sig, 2.)))
return y
def map_keys(input):
df_map = {}
for k in input.keys():
df = k[1]
ch = k[3]
if df in df_map.keys():
df_map[df].append(k)
else:
df_map[df] = [k]
return df_map
print(ch)