Skip to content

Commit 87e00ac

Browse files
committed
added back unicode printing in __str__ for panel
1 parent 1c391c6 commit 87e00ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/core/panel.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -434,14 +434,14 @@ def __unicode__(self):
434434
class_name = str(self.__class__)
435435

436436
shape = self.shape
437-
dims = 'Dimensions: %s' % ' x '.join([ "%d (%s)" % (s, a) for a,s in zip(self._AXIS_ORDERS,shape) ])
437+
dims = u'Dimensions: %s' % ' x '.join([ "%d (%s)" % (s, a) for a,s in zip(self._AXIS_ORDERS,shape) ])
438438

439439
def axis_pretty(a):
440440
v = getattr(self,a)
441441
if len(v) > 0:
442-
return '%s axis: %s to %s' % (a.capitalize(),v[0],v[-1])
442+
return u'%s axis: %s to %s' % (a.capitalize(),com.pprint_thing(v[0]),com.pprint_thing(v[-1]))
443443
else:
444-
return '%s axis: None' % a.capitalize()
444+
return u'%s axis: None' % a.capitalize()
445445

446446

447447
output = '\n'.join([class_name, dims] + [axis_pretty(a) for a in self._AXIS_ORDERS])

0 commit comments

Comments
 (0)