pyrcs.utils.save_data_to_file(cls, data, data_name, ext, dump_dir=None, verbose=False, **kwargs)[source]

Save the collected data as a file, depending on the given parameters.

  • cls (object) – (an instance of) a class for a certain data cluster

  • data (pandas.DataFrame | list | dict) – data collected for a certain cluster

  • data_name (str) – key to the dict-type data of a certain cluster

  • ext (bool | str) – whether to save the data as a file, or file extension

  • dump_dir (str | None) – pathname of a directory where the data file is to be dumped, defaults to None

  • verbose (bool | int) – whether to print relevant information in console, defaults to False

  • kwargs – [optional] parameters of the function