Skip to content

Commit ed5687b

Browse files
committed
Omit index when exporting prediction sets
1 parent ac7e713 commit ed5687b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/conformist/base_cop.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ def predict(self,
135135
self.create_output_dir(output_dir)
136136

137137
# -- WRITE PREDICTIONS TO CSV
138-
formatted_predictions.to_csv(f'{self.output_dir}/prediction_sets.csv')
138+
formatted_predictions.to_csv(f'{self.output_dir}/prediction_sets.csv',
139+
index=False)
139140

140141
# -- GENERATE REPORTS --
141142
# Upset plot

0 commit comments

Comments
 (0)