for i in range(len(data["Долг"])):
temp = list()
for key,_ in data.items():
temp.append(key+"="+data[key][i])
pass
new_data.append(temp.copy())
print(new_data)
print('--------------------')
def bypass(tree, data_x, data_y, data_z):
name_tree = tree["name"]
target_tree = str(cstr(tree["df"].iloc[:,-1]) if len(tree["edges"])==0 else "")
for i in [data_x, data_y, data_z]:
if i == name_tree:
for e in tree["edges"]:
name_tree += bypass(e, data_x, data_y, data_z)
pass
print(i, name_tree)
for e in tree["edges"]:
name_tree += bypass(e, data_x, data_y, data_z)
pass
return name_tree
for i in range(len(new_data)):
bypass(Tree, new_data[i][3], new_data[i][0], new_data[i][1])