I have this line of code:
feat_table.at(i, 'pastHC')=(ht_stats[ht_stats["AwayTeam"] == ht].sum().HC + ht_stats[ht_stats["HomeTeam"] == ht].sum().HC)/k
However, when I run the cell on Jupyter, it gives me the error:
cannot assign to function call
and it points to the second sum() function in the line of code.