df = pd.DataFrame([('64052', '10.10.10.10', 'RED'), ('3802',
    '192.168.10.10', 'BLUE'), ('488', '10.10.10.10', 'RED')], columns=[
    'Value', 'IP', 'Color'])
df['Value'] = df['Value'].astype(int)
df.groupby(['IP', 'Color']).sum()
Best way to compare a in a list of list and add a different value with python