Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

print a formatted table using python

import pandas as pd

d = [ ["Mark", 12, 95],
     ["Jay", 11, 88],
     ["Jack", 14, 90]]

df = pd.DataFrame(d, columns = ['Name','Age','Percent'])
print(df)
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #print #formatted #table #python
ADD COMMENT
Topic
Name
2+4 =