I want to have a dict(tuple(int, Counter)).
variable = defaultdict(int,Counter)
TypeError: descriptor 'keys' of 'dict' object needs an argument
I have IP addresses that can be associated with multiple values, such as a ttl value and MAC addresses, so I want to count which ttl value appears the most, and I want to associate it (via the int) with the other ttl values.
How do I declare this type?
Use a lambda as the defaultdict initializer