Skip to content

Instantly share code, notes, and snippets.

@jklymak
Created April 18, 2017 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jklymak/cc675bc86aa6eeaa3efe10186ccd88df to your computer and use it in GitHub Desktop.
Save jklymak/cc675bc86aa6eeaa3efe10186ccd88df to your computer and use it in GitHub Desktop.
Parse a UVic grade sheet. Obviously a lot is hardcoded
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