def _generate_examples(self, path):
    'Yields examples.'
    data = list(_read_csv(path))
    data = _deduplicate(data)
    for (link_id, one_topic_data) in itertools.groupby(data, (lambda row: row['link_id'])):
        one_topic_data = list(one_topic_data)
        for row in one_topic_data:
            row['text'] = row.pop('body')
        (yield (link_id, {_THREAD_KEY: one_topic_data}))
Yields examples.
def _generate_examples(self, path):
    
    data = list(_read_csv(path))
    data = _deduplicate(data)
    for (link_id, one_topic_data) in itertools.groupby(data, (lambda row: row['link_id'])):
        one_topic_data = list(one_topic_data)
        for row in one_topic_data:
            row['text'] = row.pop('body')
        (yield (link_id, {_THREAD_KEY: one_topic_data}))