Closed
Description
OSX py2.7
def test_info_repr(self):
max_rows = 60
max_cols = 20
# Long
h, w = max_rows + 1, max_cols - 1
df = DataFrame({k: np.arange(1, 1 + h) for k in np.arange(w)})
assert has_vertically_truncated_repr(df)
with option_context('display.large_repr', 'info'):
assert has_info_repr(df)
# Wide
h, w = max_rows - 1, max_cols + 1
df = DataFrame({k: np.arange(1, 1 + h) for k in np.arange(w)})
> assert has_horizontally_truncated_repr(df)
E assert False
E + where False = has_horizontally_truncated_repr( 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18... 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59)
pandas/tests/io/formats/test_format.py:1601: AssertionError