python tablefmt="simple_grid" not working

40 Views Asked by At

I try to make simple_grid table but it is not working instead it showing simple table

from tabulate import tabulate

table = [["praveen", "cse", "molasi"],`["vasanth", "cse", "thokavadi"],["yogesh", "cse", "ksr"]]
headers = ["Name", "Dept", "Home"]

output = tabulate(table, headers, tablefmt="simple_grid")

print(output)
Name     Dept    Home
-------  ------  ---------
praveen  cse     molasi
vasanth  cse     thokavadi
yogesh   cse     ksr
0

There are 0 best solutions below