code: def fromdicts(dicts, header=None, sample=1000, missing=None):
      
  
      return DictsView(dicts, header=header, sample=sample, missing=missing)
docs: View a sequence of Python :class:`dict` as a table. E.g.::
  
          >>> import petl as etl
          >>> dicts = [{"foo": "a", "bar": 1},
          ...          {"foo": "b", "bar": 2},
          ...          {"foo": "c", "bar": 2}]
          >>> table1 = etl.fromdicts(dicts, header=['foo', 'bar'])
          >>> table1
          +-----+-----+
          | foo | bar |
          +=====+=====+
          | 'a' |   1 |
          +-----+-----+
          | 'b' |   2 |
          +-----+-----+
          | 'c' |   2 |
          +-----+-----+
  
      If `header` is not specified, `sample` items from `dicts` will be
      inspected to discovery dictionary keys. Note that the order in which
      dictionary keys are discovered may not be stable,
  
      See also :func:`petl.io.json.fromjson`.
  
      .. versionchanged:: 1.1.0
  
      If no `header` is specified, fields will be discovered by sampling keys
      from the first `sample` dictionaries in `dicts`. The header will be
      constructed from keys in the order discovered. Note that this
      ordering may not be stable, and therefore it may be advisable to specify
      an explicit `header` or to use another function like
      :func:`petl.transform.headers.sortheader` on the resulting table to
      guarantee stability.