Hi everyone,
I have some data in a DB that have a parent properties
like something like
of course if you have another format for the outputed Python object (than chain of list) I'm all ears too :)
Thanks
I have some data in a DB that have a parent properties
name|parent John|Null David|John Grunt|David Jade|JohnThis give this ~hierarchy
John
- David
- Grunt
- JadeI would like to create a python object of those relations (the tree might be deeper ! :) )like something like
['John', ['David', ['Grunt', None]],['Jade', None]]So I'm losing my mind as I don't find and efficient way..
of course if you have another format for the outputed Python object (than chain of list) I'm all ears too :)
Thanks
