def istabular(ds):
    """ Can be represented by a two dimensional with fixed columns

    >>> istabular('var * 3 * int')
    True
    >>> istabular('var * {name: string, amount: int}')
    True
    >>> istabular('var * 10 * 3 * int')
    False
    >>> istabular('10 * var * int')
    False
    >>> istabular('var * (int64, string, ?float64)')
    False
    """
    ds = dshape(ds)
    return (
        _dimensions(ds) == 2 and
        isfixed(ds.subarray(1)) and
        not isinstance(ds.subarray(1).measure, Tuple)
    )
dataset/ETHPy150Open blaze/datashape/datashape/predicates.py/istabular/original