sksurv.io.writearff

sksurv.io.writearff(data, filename, relation_name=None, index=True)

Write ARFF file

Parameters:
  • data (pandas.DataFrame) – DataFrame containing data
  • filename (string or file-like object) – Path to ARFF file or file-like object. In the latter case, the handle is closed by calling this function.
  • relation_name (string, optional, default: "pandas") – Name of relation in ARFF file.
  • index (boolean, optional, default: True) – Write row names (index)