From 8e53829ffdbc69c46783be5cb565928cabe261b4 Mon Sep 17 00:00:00 2001 From: Mateusz Date: Wed, 11 May 2022 23:43:26 +0200 Subject: [PATCH] disable header in pandas dataframes --- dev-0/out.tsv | 1 - run.py | 4 ++-- test-A/out.tsv | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/dev-0/out.tsv b/dev-0/out.tsv index d6460b1..3c7efbe 100644 --- a/dev-0/out.tsv +++ b/dev-0/out.tsv @@ -1,5 +1,4 @@ 0 -0 1 0 0 diff --git a/run.py b/run.py index 58e7145..546e6f0 100644 --- a/run.py +++ b/run.py @@ -43,5 +43,5 @@ train_bayes(model, train_x, train_y) predicted = model.classify(dev_x) predicted2 = model.classify(test_x) -pd.DataFrame(predicted).to_csv('dev-0/out.tsv', sep='\t', encoding="utf-8", index=False) -pd.DataFrame(predicted2).to_csv('test-A/out.tsv', sep='\t', encoding="utf-8", index=False) +pd.DataFrame(predicted).to_csv('dev-0/out.tsv', sep='\t', header=None, encoding="utf-8", index=False) +pd.DataFrame(predicted2).to_csv('test-A/out.tsv', sep='\t', header=None, encoding="utf-8", index=False) diff --git a/test-A/out.tsv b/test-A/out.tsv index d1420ef..902a4ec 100644 --- a/test-A/out.tsv +++ b/test-A/out.tsv @@ -14,7 +14,6 @@ 0 0 0 -0 1 0 0