preprocessing/data_analysis.py
def keys_to_counts(keys):
    '''
    returns a tuple of topic categories and their
    accompanying magnitudes for a given list of keys
    '''
    count_pairs = Counter(keys).items()
    categories = [pair[0] for pair in count_pairs]
    counts = [pair[1] for pair in count_pairs]
    return (categories, counts)

    returns a tuple of topic categories and their
    accompanying magnitudes for a given list of keys
    
returns a tuple of topic categories and their
accompanying magnitudes for a given list of keys
returns a tuple of topic categories and their accompanying magnitudes for a given list of keys
def keys_to_counts(keys):
    count_pairs = Counter(keys).items()
    categories = [pair[0] for pair in count_pairs]
    counts = [pair[1] for pair in count_pairs]
    return (categories, counts)
def keys_to_counts ( keys ) : count_pairs = Counter ( keys ) . items ( ) categories = [ pair [ 0 ] for pair in count_pairs ] counts = [ pair [ 1 ] for pair in count_pairs ] return ( categories , counts )
returns a tuple of topic categories and their
accompanying magnitudes for a given list of keys
returns a tuple of topic categories and their accompanying magnitudes for a given list of keys
'''
    returns a tuple of topic categories and their
    accompanying magnitudes for a given list of keys
    '''
keys