Home
last modified time | relevance | path

Searched refs:fieldnames (Results 1 – 20 of 20) sorted by relevance

/external/python/cpython3/Lib/
Dcsv.py82 def __init__(self, f, fieldnames=None, restkey=None, restval=None, argument
84 self._fieldnames = fieldnames # list of keys for the dict
95 def fieldnames(self): member in DictReader
104 @fieldnames.setter
105 def fieldnames(self, value): member in DictReader
111 self.fieldnames
120 d = OrderedDict(zip(self.fieldnames, row))
121 lf = len(self.fieldnames)
126 for key in self.fieldnames[lr:]:
132 def __init__(self, f, fieldnames, restval="", extrasaction="raise", argument
[all …]
/external/python/cpython2/Lib/
Dcsv.py74 def __init__(self, f, fieldnames=None, restkey=None, restval=None, argument
76 self._fieldnames = fieldnames # list of keys for the dict
87 def fieldnames(self): member in DictReader
100 @fieldnames.setter
101 def fieldnames(self, value): member in DictReader
107 self.fieldnames
116 d = dict(zip(self.fieldnames, row))
117 lf = len(self.fieldnames)
122 for key in self.fieldnames[lr:]:
128 def __init__(self, f, fieldnames, restval="", extrasaction="raise", argument
[all …]
/external/autotest/client/site_tests/security_SandboxedServices/
Dsecurity_SandboxedServices.py174 return reader.fieldnames, dict((d['exe'], d) for d in reader
201 def dump_services(self, fieldnames, running_services_properties): argument
211 writer = csv.DictWriter(output_file, fieldnames=fieldnames,
226 fieldnames, baseline = self.load_baseline()
317 self.dump_services(fieldnames, running_services_properties)
/external/python/cpython3/Doc/library/
Dcsv.rst149 .. 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
[all …]
Dcollections.rst784 If *rename* is true, invalid fieldnames are automatically replaced
/external/python/cpython3/Lib/test/
Dtest_csv.py594 writer = csv.DictWriter(fileobj, fieldnames = ["f1", "f2", "f3"])
605 writer = csv.DictWriter(fileobj, fieldnames=["f1", "f2", "f3"])
619 writer = csv.DictWriter(fileobj, fieldnames = ["f1", "f2", "f3"])
652 fieldnames=["f1", "f2", "f3"])
661 self.assertEqual(reader.fieldnames, ["f1", "f2", "f3"])
670 fieldnames=next(csv.reader(fileobj)))
671 self.assertEqual(reader.fieldnames, ["f1", "f2", "f3"])
682 self.assertEqual(reader.fieldnames, ["f1", "f2", "f3"])
690 fieldnames=["f1", "f2"])
699 fieldnames=["f1", "f2"], restkey="_rest")
[all …]
/external/python/cpython2/Lib/test/
Dtest_csv.py309 fieldnames=['a', 'b', 'c'])):
639 writer = csv.DictWriter(fileobj, fieldnames = ["f1", "f2", "f3"])
659 writer = csv.DictWriter(fileobj, fieldnames = ["f1", "f2", "f3"])
679 fieldnames=["f1", "f2", "f3"])
692 self.assertEqual(reader.fieldnames, ["f1", "f2", "f3"])
706 reader = csv.DictReader(f, fieldnames=csv.reader(f).next())
707 self.assertEqual(reader.fieldnames, ["f1", "f2", "f3"])
723 self.assertEqual(reader.fieldnames, ["f1", "f2", "f3"])
736 fieldnames=["f1", "f2"])
750 fieldnames=["f1", "f2"], restkey="_rest")
[all …]
/external/python/cpython2/Doc/library/
Dcsv.rst168 .. class:: DictReader(csvfile, fieldnames=None, restkey=None, restval=None, \
173 *fieldnames* parameter. The *fieldnames* parameter is a :ref:`sequence
176 resulting dictionary. If the *fieldnames* parameter is omitted, the values
177 in the first row of the *csvfile* will be used as the fieldnames. If the
178 row read has more fields than the fieldnames sequence, the remaining data is
180 fewer fields than the fieldnames sequence, the remaining keys take the value
197 .. class:: DictWriter(csvfile, fieldnames, restval='', extrasaction='raise', \
201 onto output rows. The *fieldnames* parameter is a :ref:`sequence
205 value to be written if the dictionary is missing a key in *fieldnames*. If
207 found in *fieldnames*, the optional *extrasaction* parameter indicates what
[all …]
Dcollections.rst582 If *rename* is true, invalid fieldnames are automatically replaced
/external/trappy/tests/
Dtest_base.py196 self.assertTrue("Time" in csv_reader.fieldnames)
197 self.assertTrue("temp" in csv_reader.fieldnames)
/external/tensorflow/tensorflow/contrib/receptive_field/python/util/examples/
Drf_benchmark.py494 rf_writer = csv.DictWriter(csv_file, fieldnames=field_names)
/external/tensorflow/tensorflow/python/keras/_impl/keras/
Dcallbacks.py996 fieldnames=['epoch'] + self.keys,
/external/python/cpython3/Doc/whatsnew/
D3.1.rst284 *rename* which lets invalid fieldnames be automatically converted to
D2.6.rst1854 fieldnames)` is a factory function that creates subclasses of the standard tuple
/external/lisa/ipynb/energy/
DEnergyModel_SystemEnergy.ipynb504 " fieldnames=['cluster', 'cpus', 'freq',\n",
899 " writer = DictWriter(csvfile, fieldnames=['cluster', 'cpus',\n",
DEnergyModel_ClusterEnergy.ipynb407 " fieldnames=['cluster', 'cpus', 'freq',\n",
822 " fieldnames=['cluster', 'cpus',\n",
/external/python/cpython2/Doc/whatsnew/
D2.6.rst1850 fieldnames)` is a factory function that creates subclasses of the standard tuple
/external/python/cpython2/Misc/
DNEWS2321 error message that certain keys are not in the 'fieldnames' list.
8453 which lets invalid fieldnames be automatically converted to positional names
9420 - Issue #3436: Make csv.DictReader's fieldnames attribute a property so that
DHISTORY3483 - The fieldnames argument to the csv module's DictReader constructor is now
3485 list of fieldnames.
/external/python/cpython3/Misc/
DHISTORY3366 error message that certain keys are not in the 'fieldnames' list.
15625 'rename' which lets invalid fieldnames be automatically converted to
20867 - The fieldnames argument to the csv module's DictReader constructor is now
20869 list of fieldnames.