This commit is contained in:
stubbfel
2014-03-19 12:20:30 +01:00
parent 5267f00fab
commit e026cd0174
5 changed files with 156 additions and 25 deletions

View File

@@ -17,12 +17,13 @@ def aggrateRow(row,discardIndex):
colCount = 0
colSum = 0
workcopy = row[:]
del workcopy[discardIndex]
if discardIndex >= 0:
del workcopy[discardIndex]
for col in workcopy:
colCount += 1
if col.isnumeric():
colSum += int(col)
if is_number(col):
colSum += float(col)
return colSum / colCount
def aggrateCol(colIndex, table):