def _repr_categories(self):
max_categories = (<NUM_LIT:10> if get_option("<STR_LIT>") == <NUM_LIT:0> else<EOL>get_option("<STR_LIT>"))<EOL>from pandas.io.formats import format as fmt<EOL>if len(self.categories) > max_categories:<EOL><INDENT>num = max_categories // <NUM_LIT:2><EOL>head = fmt.format_array(self.categories[:num], None)<EOL>tail = fmt.format_array(self.categories[-num:], None)<EOL>category_strs = head + ["<STR_LIT>"] + tail<EOL><DEDENT>else:<EOL><INDENT>category_strs = fmt.format_array(self.categories, None)<EOL><DEDENT>category_strs = [x.strip() for x in category_strs]<EOL>return category_strs<EOL>
return the base repr for the categories