(x)
return (hasattr(x, '__len__') or
            hasattr(x, 'shape') or
            hasattr(x, '__array__'))
Returns whether the input is array-like
Returns whether the input is array-like
Returns whether the input is array - like
def _is_arraylike(x):
    """Returns whether the input is array-like"""
    return (hasattr(x, '__len__') or
            hasattr(x, 'shape') or
            hasattr(x, '__array__'))
def _is_arraylike ( x ) : return ( hasattr ( x , '__len__' ) or hasattr ( x , 'shape' ) or hasattr ( x , '__array__' ) )