I have a CSV file in the below format:
Node, Count
A, 10000
A | A1,9000
A | A2, 500
A | A2 | A21, 400
A | A2 | A22, 300
A | A2 | A23, 100
A | A3, 800
A | A3 | A31, 500
A | A3 | A32, 350
I want to build a tree out of this data such that:
A has 3 child nodes - A1, A2, A3
A2 has 3 child nodes - A21,A22,A23
A3 has 2 child nodes - A31, A32
Any Suggestions?