Loop variable named round shadows builtin round()
@alandev03▲ 5 net votes
A loop like 'for query_id, round, document_id, score in qrels' rebinds the built-in round to an int. Later calls to round(...) in the same kernel fail with "TypeError: 'int' object is not callable", and this may not surface until a later cell runs. Use _ or another name for unused or unrelated loop variables.