def __init__(self, messages, numeric_fields, frequency_fields):
    self._numeric_fields = numeric_fields
    self._frequency_fields = frequency_fields
    self.counter = MessageFieldCounter(messages, frequency_fields)
    messages = self.counter.process()
    messages = imap(dict_subset, messages, it.repeat(numeric_fields))
    messages = (m for m in messages)
    self.df = pd.DataFrame(messages)
def __init__(self, messages, numeric_fields, frequency_fields):
    self._numeric_fields = numeric_fields
    self._frequency_fields = frequency_fields
    self.counter = MessageFieldCounter(messages, frequency_fields)
    messages = self.counter.process()
    messages = imap(dict_subset, messages, it.repeat(numeric_fields))
    messages = (m for m in messages)
    self.df = pd.DataFrame(messages)