add_records

negmas.helpers.add_records(file_name: Union[str, os.PathLike], data: Any, col_names: Optional[List[str]] = None, raise_exceptions=False)None[source]

Adds records to a csv file

Parameters
  • file_name – file name

  • data – data to use for creating the record

  • col_names – Names in the data.

  • raise_exceptions – If given, exceptions are raised on failure

Returns

None

Remarks:

  • If col_names are not given, the function will try to normalize the input data if it was a dict or a list of dicts