'Print data for a single statistic.'

def print_one(self, table, column_id, operation, label=True, **kwargs):

    column_name = table.column_names[column_id]
    op_name = operation
    getter = globals().get(('get_%s' % op_name), None)
    with warnings.catch_warnings():
        warnings.simplefilter('ignore', agate.NullCalculationWarning)
        try:
            if getter:
                stat = getter(table, column_id, **kwargs)
            else:
                op = OPERATIONS[op_name]['aggregation']
                stat = table.aggregate(op(column_id))
                if isinstance(stat, Decimal):
                    stat = format_decimal(stat, locale=agate.config.get_option('default_locale'))
        except:
            stat = None
    if (op_name == 'freq'):
        stat = ',    '.join([(u'"%s":    %s' % (six.text_type(row[column_name]), row['Count'])) for row in stat])
        stat = (u'{    %s    }' % stat)
    if label:
        self.output_file.write((u'%3i.    %s:    %s\n' % ((column_id + 1), column_name, stat)))
    else:
        self.output_file.write((u'%s\n' % stat))
