def describe_data(data):
 items = OrderedDict()
 if (data is None):
  return items
 if isinstance(data, SqlTable):
  items['Data instances'] = data.approx_len()
 else:
  items['Data instances'] = len(data)
 items.update(describe_domain(data.domain))
 return items

def describe_data ( data ) : items = OrderedDict ( ) if ( data is None ) : return items if isinstance ( data , SqlTable ) : items [ 'Data instances' ] = data . approx_len ( ) else : items [ 'Data instances' ] = len ( data ) items . update ( describe_domain ( data . domain ) ) return items
return an :obj:ordereddict describing the data description contains keys "data instances" and "features" .