20140319
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user