def __unicode__(self):
class_name = str(self.__class__)<EOL>dims = '<STR_LIT>'.format(dimensions='<STR_LIT>'.join(<EOL>["<STR_LIT>".format(shape=shape, axis=axis) for axis, shape<EOL>in zip(self._AXIS_ORDERS, self.shape)]))<EOL>def axis_pretty(a):<EOL><INDENT>v = getattr(self, a)<EOL>if len(v) > <NUM_LIT:0>:<EOL><INDENT>return '<STR_LIT>'.format(ax=a.capitalize(),<EOL>x=pprint_thing(v[<NUM_LIT:0>]),<EOL>y=pprint_thing(v[-<NUM_LIT:1>]))<EOL><DEDENT>else:<EOL><INDENT>return '<STR_LIT>'.format(ax=a.capitalize())<EOL><DEDENT><DEDENT>output = '<STR_LIT:\n>'.join(<EOL>[class_name, dims] + [axis_pretty(a) for a in self._AXIS_ORDERS])<EOL>return output<EOL>
Return a unicode string representation for a particular Panel.