Last active
April 9, 2020 19:42
-
-
Save raganmd/e7f2da84ab7e8ec267b920d066674be5 to your computer and use it in GitHub Desktop.
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
def onCellChange(dat, cells, prev): | |
for eachCell in cells: | |
if eachCell.col == 0: | |
if eachCell == 1: | |
targetRows = dat.row(eachCell.row) | |
sumOfRows = sum([int(val) for val in targetRows[1:]]) | |
op('table2')[eachCell.row, 0] = sumOfRows | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment