Convert data structure into html table
tablify is package used to convert python data structures to html or clean tabular design. Thanks for checking it out.
- Python 3.x
import sys
from tablify.parser.parse import pyobj
dict_example = {'Total_Matches': ['200', '127', '102'],\
'Player Name': ['M.S Dhoni', 'Virendra Sehwag', 'Shikhar Dhawan'],\
'Sixes': ['280.', '210', '126']}
pyobj = pyobj()
htmltext = pyobj.dictToHTMLTable(dict_example)
print(htmltext)