PyFoam.Basics.CSVCollection module¶
Collects data and writes it to a CSV-file. Optionally return a pandas-data-frame
-
class
PyFoam.Basics.CSVCollection.
CSVCollection
(name=None)[source]¶ Bases:
object
Collects data like a dictionary. Writes it to a line in a CSV-file. If the dictionary is extended the whole file is rewritten
-
_CSVCollection__makeSimple
(v)¶
-
__call__
(usePandas=True)[source]¶ Return the data as a pandas-Dataframe :param usePandas: whether data should be returned in pandas-format. Otherwise numpy
-
__dict__
= mappingproxy({'_CSVCollection__makeSimple': <function CSVCollection.__makeSimple>, '__setitem__': <function CSVCollection.__setitem__>, '__init__': <function CSVCollection.__init__>, '__doc__': '\n Collects data like a dictionary. Writes it to a line in a CSV-file.\n If the dictionary is extended the whole file is rewritten\n ', '__module__': 'PyFoam.Basics.CSVCollection', 'write': <function CSVCollection.write>, '__dict__': <attribute '__dict__' of 'CSVCollection' objects>, 'clear': <function CSVCollection.clear>, '__call__': <function CSVCollection.__call__>, '__weakref__': <attribute '__weakref__' of 'CSVCollection' objects>})¶
-
__init__
(name=None)[source]¶ Parameters: name – name of the file. If unset no file will be written (only data collected)
-
__module__
= 'PyFoam.Basics.CSVCollection'¶
-
__setitem__
(key, value)[source]¶ Sets a value in the current dataset :param key: the key :param value: and it’s value
-
__weakref__
¶ list of weak references to the object (if defined)
-