I've literally added Pandas to some of my projects just so I could use a DataFrame to print a nicely formatted table instead of writing code like this.
Surely there's a library out there to do this job, it seems like such a common use-case. I'm surprised it's not in the standard library to be honest!