add_records(file_name: Union[str, os.PathLike], data: Any, col_names: Optional[List[str]] = None, raise_exceptions=False) → None¶
Adds records to a csv file
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
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