Reza
New Contributor III

You should replace "{" with "["

exprs = [sum(x).alias(x) for x in col_list]