sksurv.io.
writearff
Write ARFF file
data (pandas.DataFrame) – DataFrame containing data
pandas.DataFrame
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)