python - How to layout large dictionary in the form of a table? -


i have data want present in table. column in table can header or value . of these headers in turn, have common headers. in other words, have tree of headers want show in table cells , values @ end of it.

problem: how lay out in form of table if have large dictionary can scan through , make tabular structure of having nested headers , values in last cell.

example :

+ header 1 |---+ header 2 |   |---- header 4--- some_value |   '---+ header 5 -- some_value |       |---- header 8---sub_headers--some_value |       '---- header 9 '---+ header 3     |---- header 6     '---- header 7 


Comments