sum function

Mike mike20007 at gmail.com
Thu Oct 4 22:01:24 EDT 2012


I agree with you, Ian. Thanks for all the help.  Now I get the below error.

  File "test.py", line 17, in <module>
    total = sum(float(col.value) for r in iter(next_r, None) for col in r[0].columns.itervalues())
  File "test.py", line 17, in <genexpr>
    total = sum(float(col.value) for r in iter(next_r, None) for col in r[0].columns.itervalues())

Thanks



More information about the Python-list mailing list