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

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 or list or dict) – data collected for a certain cluster

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

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

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

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

  • kwargs – [optional] parameters of the function