@pytest.mark.parametrize('cls', [AsciiTable, UnixTable])
def test_empty(cls):
    table = cls([])
    with pytest.raises(IndexError):
        table.column_max_width(0)
    with pytest.raises(IndexError):
        table.column_max_width(1)

    table = cls([[]])
    with pytest.raises(IndexError):
        table.column_max_width(0)
    with pytest.raises(IndexError):
        table.column_max_width(1)

    table = cls([['']])
    assert table.column_max_width(0) == 76
    with pytest.raises(IndexError):
        table.column_max_width(1)

    table = cls([[' ']])
    assert table.column_max_width(0) == 76
    with pytest.raises(IndexError):
        table.column_max_width(1)
Return a summary of descriptive statistics.
dataset/ETHPy150Open Robpol86/terminaltables/tests/test_max_width.py/test_empty--crossover with--dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/stats/descriptivestats.py/Describe.summary