Created
April 18, 2017 17:35
-
-
Save jklymak/cc675bc86aa6eeaa3efe10186ccd88df to your computer and use it in GitHub Desktop.
Parse a UVic grade sheet. Obviously a lot is hardcoded
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas | |
df = pandas.read_excel('ClassListGradeEntry_07-02-2017_11-15-08_AM.xls') | |
for ii in range(6): | |
for col in range(len(df.loc[ii])-2): | |
if (col in [11,15]): | |
print('--------------------------------------------------------------') | |
if col in [0,1,16]: | |
print('%20s: %20s'%(df.keys()[col],df.loc[ii][col])) | |
else: | |
print('%20s: %20s out of %1s'%(df.keys()[col],df.loc[ii][col],df.loc[6][col])) | |
print('\n\n') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment