Python need to figure out error wrong output

hey guys so i need help with an output I'm getting and incorrect output and i don't know know what im doing wrong it be extremely help if you guys helped thanks! Here is my code:

####please dont copy straight up its like stealing an essay some things you cant really change theres only so many ways to do it 

##Code by Angel M Gonzalez 

import csv
with open('scratch.csv', 'r', errors='replace') as progfile:
    progfile.close()
a = open("scratch.csv")
filter = csv.reader(a)

# Step 2: Printing
columns = { 0: 'Company', 1: 'Booth', 2: 'Full-Time', 3: 'Full-Time Visa Sponsor', 4: 'Part-Time', 5: 'Internship', 6: 'Freshman', 7: 'Sophomore', 8: 'Junior', 9: 'Senior', 10: 'Post-Bacs', 11: 'MS', 12: 'PhD', 13: 'Alumni', }
for i in columns:
    print(i, columns[i])

# Step 3: Filtering and Formatting
UniRows = []
RRows = 0
for rows in filter:
   RRows += 1
   if RRows > 3 and RRows < 34 and rows[0] is not '':
       UniRows.append(rows)

#Step 4 Expected output
employersSummary = {'No.': ('Column', 'Sum')}
for output in range(14):
    total = 0
    for rrows in UniRows:
        if rrows[output] is not '':
            total += 1
    employersSummary[output] = (columns[output], total)
print(employersSummary)

#Step 4 continued
twoColumns = {
0: 'AIG',
1: 'Baylor College of Medicine',
2: 'CGG',
3: 'Citi',
4: 'ExxonMobil',
5: 'Flow-Cal Inc.',
6: 'Global Shop Solutions',
7: 'Harris County CTS',
8: 'HCSS',
9: 'Hitachi Consulting',
10:'HP Inc.',
11: 'INT Inc.',
12: 'JPMorgan Chase & Co',
13: 'Leidos',
14: 'McKesson',
15: 'MRE Consulting Ltd.',
16: 'NetIQ',
17: 'PROS',
18: 'San Jacinto College',
19: 'SAS',
20: 'Smartbridge',
21: 'Sogeti USA',
22: 'Southwest Research Institute',
23: 'The Reynolds and Reynolds Company ',
24: 'UH Enterprise Systems',
25: 'U.S. Marine Corps',
26: 'ValuD Consuting LLC',
27: 'Wipro',}
for i in twoColumns:
    print(i, twoColumns[i])

#Step 4 continued

Uni2Rows = []
R2Rows = 0
for rows in line:
    R2Rows += 1
    if R2Rows > 34 and R2Rows < 66 and rows[0] is not '':
        UniRows.append(rows)


GradUnderGrad = {'No.': ('Company', 'Grad', 'UnderGrad')}
for out2put in range(28):
    total = 0
    for r2rows in Uni2Rows:
        if r2rows[out2put] is not '':
            total += 1
    GradUnderGrad[out2put] = (twoColumns[out2put], total)
print(GradUnderGrad)

This is the outcome i want for the last step:

No Company Grad UnderGrad
0 AIG, 1, 1
1 Baylor College of Medicine, 0, 0
2 CGG, 1, 0
3 Citi, 0, 1
4 ExxonMobil, 0, 1
5 Flow-Cal Inc., 0, 1
6 Global Shop Solutions, 0, 1
7 Harris County CTS, 1, 1
8 HCSS, 1, 1
9 Hitachi Consulting, 1, 1
10 HP Inc., 1, 1
11 INT Inc., 1, 1
12 JPMorgan Chase & Co, 0, 1
13 Leidos, 1, 1
14 McKesson, 0, 1
15 MRE Consulting Ltd., 1, 1
16 NetIQ, 0, 1
17 PROS, 1, 1
18 San Jacinto College
19 SAS, 1, 1
20 Smartbridge, 1, 1
21 Sogeti USA, 1, 1
22 Southwest Research Institute, 1, 1
23 The Reynolds and Reynolds Company 0 1 24 UH Enterprise Systems, 1, 1
25 U.S. Marine Corps, 1, 1,
26 ValuD Consuting LLC, 0, 1
27 Wipro, 0 
Total 17 26

But this what i keep getting instead and its annoying:

No Company Grad UnderGrad
0 AIG, 0
1 Baylor College of Medicine, 0
2 CGG,0 
3 Citi, 0 
4 ExxonMobil, 0 
5 Flow-Cal Inc., 0 
6 Global Shop Solutions, 0 
7 Harris County CTS, 0
8 HCSS, 0 
9 Hitachi Consulting, 0 
10 HP Inc., 0 
11 INT Inc., 0 
12 JPMorgan Chase & Co, 0 
13 Leidos, 0
14 McKesson, 0
15 MRE Consulting Ltd., 0
16 NetIQ, 0 
17 PROS, 0 
18 San Jacinto College, 0
19 SAS, 0 
20 Smartbridge, 0
21 Sogeti USA, 0
22 Southwest Research Institute, 0 
23 The Reynolds and Reynolds Company 0 1 24 UH Enterprise Systems, 0 
25 U.S. Marine Corps, 0
26 ValuD Consuting LLC, 0
27 Wipro, 0

My problem is on the last step for undergrad I am using a csv file. Does anyone know what I'm doing wrong? am I not merging columns correctly do i need a different code if anyone cane help me please do i need major help.

This is the link to the CSV file I'm using: https://github.com/ag0715/Assign3ddhudhudhuhsashdui3hrfuwhf94839fuh38u4fhui/blob/master/CSV%20FILE