def _get_data_attribute(dat, attr=None):
 if (attr == 'class'):
  val = type(dat).__name__
 elif (attr == 'dtype'):
  val = dtype_info_name(dat.info.dtype)
 elif (attr == 'shape'):
  datshape = dat.shape[1:]
  val = (datshape if datshape else '')
 else:
  val = getattr(dat.info, attr)
 if (val is None):
  val = ''
 return str(val)

def _get_data_attribute ( dat , attr = None ) : if ( attr == 'class' ) : val = type ( dat ) . __name__ elif ( attr == 'dtype' ) : val = dtype_info_name ( dat . info . dtype ) elif ( attr == 'shape' ) : datshape = dat . shape [ 1 : ] val = ( datshape if datshape else '' ) else : val = getattr ( dat . info , attr ) if ( val is None ) : val = '' return str ( val )
get a data object attribute for the attributes info summary method .