Tables in Python


I was wondering if anyone knew how to create tables in Python.

I found things abnout dictionaries, dataframes, and others, but to be honest, it’s all confusing me a lot, and i don’t quite know how i should go about making a fully formatted table with columns and rows in python.

for instance, if i have a csv file

or if i have a dictionary

1 Like

Hi @mohula,

For this purpose, you can find useful the prettytable and tabulate Python libraries.

1 Like