I have a dictionary that contains 2 lists.
{'depth': [0, 1, 1, 2, 3, 3, 3, 1, 1, 2, 3], 'nodeName': ['root', 'Deleted Customers', 'New Customers', 'Region', 'Europe', 'Asia', 'America', 'Deleted Partners', 'New Partners', 'Region', 'Europe']}
I need to build the full path based on the lists in python.
root\Deleted Customers
root\New Customers\Region\Europe
root\New Customers\Region\Asia
root\New Customers\Region\America
root\Deleted Partners
root\New Partners\Region\Europe
root
├── Deleted Customers
│
└── New Customers
│
└── Region
|── Europe
├── Asia
└── America
What would be the best pythonic way to handle this?
I have tried the binarytree and I could build the tree but could not manage to create the full paths.