import sys

from csvcols import get_column

categories = get_column(sys.argv[1], col=1)
descriptions = get_column(sys.argv[1], col=2)

for c, n in categories.most_common(len(categories)):
    print("%6d %s" % (n, c))

for d, n in descriptions.most_common(len(descriptions)):
    print("%6d %s" % (n, d))

import sys

from csvcols import get_column

categories = get_column(sys.argv[1], col=1)
descriptions = get_column(sys.argv[1], col=2)

for c, n in categories.most_common(len(categories)):
    print("%6d %s" % (n, c))

for d, n in descriptions.most_common(len(descriptions)):
    print("%6d %s" % (n, d))
