(counter)
return Counter({
        DOC_TYPE_MAPPING.get(es_doc_type, es_doc_type): count
        for es_doc_type, count in counter.items()
    })
Map lower cased doc_types from ES to CamelCased doc types
Map lower cased doc_types from ES to CamelCased doc types
Map lower cased doc_types from ES to CamelCased doc types
def map_counter_doc_types(counter):
    """Map lower cased doc_types from ES to CamelCased doc types"""
    return Counter({
        DOC_TYPE_MAPPING.get(es_doc_type, es_doc_type): count
        for es_doc_type, count in counter.items()
    })
def map_counter_doc_types ( counter ) : return Counter ( { DOC_TYPE_MAPPING . get ( es_doc_type , es_doc_type ) : count for es_doc_type , count in counter . items ( ) } )