Preview:
from prettytable import PrettyTable
summarytable = PrettyTable()

summarytable.title = 'Summary Statistics for: Quarterly GDP, Stringency, and Daily COVID-19 Cases Cleaned Datasets with Values from 2019-2021 (3sf)'
summarytable.field_names = ['Summary statistic','Quarterly GDP/US Dollar, Millions, 2015', 'Stringency Index', 'Daily Total Cases']
summarytable.add_row(["Count", "239","239", "239"])
summarytable.add_row(["Mean", "1.59e+06","54.7", "1.41e+06"])
summarytable.add_row(["Standard Deviation","3.37e+06","17.5","4.13e+06" ])
summarytable.add_row(["Min", "1.73e+04", "2.78","1.00"])
summarytable.add_row(["25%", "2.55e+05", "56.5","3.12e+04"])
summarytable.add_row(["50%","5.06e+05", "56.9","2.57e+05" ])
summarytable.add_row(["75%", "1.71e+06","67.6", "1.09e+06"])
summarytable.add_row(["Max", "2.03e+08", "96.3", "3.92e+07" ])

print(summarytable)

#reference for prettytable: https://www.geeksforgeeks.org/creating-tables-with-prettytable-library-python/
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter