def describe(self):
        counts = self.value_counts(dropna=False)
        freqs = counts / float(counts.sum())

        from pandas.tools.merge import concat
        result = concat([counts, freqs], axis=1)
        result.columns = ['counts', 'freqs']
        result.index.name = 'categories'

        return result
"&lt;quoted &amp; escaped&gt;"
dataset/ETHPy150Open pydata/pandas/pandas/core/categorical.py/Categorical.describe--crossover with--dataset/ETHPy150Open jek/flatland/tests/markup/test_generator.py/test_textarea_escaped_contents