def descr(col):
 col_dtype = (u'O' if (col.info.dtype is None) else col.info.dtype)
 col_shape = (col.shape[1:] if hasattr(col, u'shape') else ())
 return (col.info.name, col_dtype, col_shape)

def descr ( col ) : col_dtype = ( u'O' if ( col . info . dtype is None ) else col . info . dtype ) col_shape = ( col . shape [ 1 : ] if hasattr ( col , u'shape' ) else ( ) ) return ( col . info . name , col_dtype , col_shape )
array-interface compliant full description of a column .