Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
249 B
4
Indexable
Never
def reactions (reactions_column):
    total_reaction = 0
    for item in reactions_column:
        total_reaction += item ['count']
    return total_reaction
            


reactions_q['reactions_count'] = reactions_q['reactions'].apply(reactions)