Home | History | Annotate | Download | only in library

Lines Matching full:fieldnames

149 .. class:: DictReader(f, fieldnames=None, restkey=None, restval=None, \
154 whose keys are given by the optional *fieldnames* parameter.
156 The *fieldnames* parameter is a :term:`sequence`. If *fieldnames* is
158 fieldnames. Regardless of how the fieldnames are determined, the ordered
161 If a row has more fields than fieldnames, the remaining data is put in a
163 to ``None``). If a non-blank row has fewer fields than fieldnames, the
187 .. class:: DictWriter(f, fieldnames, restval='', extrasaction='raise', \
191 onto output rows. The *fieldnames* parameter is a :mod:`sequence
195 written if the dictionary is missing a key in *fieldnames*. If the
197 *fieldnames*, the optional *extrasaction* parameter indicates what action to
205 Note that unlike the :class:`DictReader` class, the *fieldnames* parameter
215 fieldnames = ['first_name', 'last_name']
216 writer = csv.DictWriter(csvfile, fieldnames=fieldnames)
423 .. attribute:: csvreader.fieldnames
437 fieldnames to strings or numbers (by passing them through :func:`str`