We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 209fb0b commit 46ef8a6Copy full SHA for 46ef8a6
pandas/core/index.py
@@ -1321,11 +1321,15 @@ def __repr__(self):
1321
self[-50:].values])
1322
else:
1323
values = self.values
1324
- summary = np.array2string(values, max_line_width=70)
+
1325
+ summary = com.pprint_thing(values)
1326
1327
np.set_printoptions(threshold=options['threshold'])
1328
- return output % summary
1329
+ if py3compat.PY3:
1330
+ return output % summary
1331
+ else:
1332
+ return com.console_encode(output % summary)
1333
1334
def __len__(self):
1335
return len(self.labels[0])
0 commit comments