Question: How to make a table from a csv file without using prettytable and without pandas. I have to use format I'm... I'm trying to get

How to make a table from a csv file without using prettytable and without pandas. I have to use format I'm...

I'm trying to get a column for "Type", "Total", and "Percent" from TipJoke.csv file.

import csv with open('TipJoke.csv', newline='') as csv_file: filereader = csv.reader(csv_file, delimiter=' ') for row in filereader: print( '{:2} {:3} {:4}'.format('Type', 'Total', 'Percent')) print(', '.join(row))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!