def DictReader(file_obj, columns=None):
 footer = _read_footer(file_obj)
 keys = (columns if columns else [s.name for s in footer.schema if s.type])
 for row in reader(file_obj, columns):
  (yield OrderedDict(zip(keys, row)))

def DictReader ( file_obj , columns = None ) : footer = _read_footer ( file_obj ) keys = ( columns if columns else [ s . name for s in footer . schema if s . type ] ) for row in reader ( file_obj , columns ) : ( yield OrderedDict ( zip ( keys , row ) ) )
reader for a parquet file object .