ktrapeznikov
commited on
Update script.py
Browse files
script.py
CHANGED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import pandas as pd
|
2 |
+
test_df = pd.read_csv("/tmp/data/test/metadata.csv")
|
3 |
+
|
4 |
+
out = []
|
5 |
+
|
6 |
+
for file_name in test_df.file_name:
|
7 |
+
out.append(dict(file_name = file_name, pred = "flux"))
|
8 |
+
|
9 |
+
pd.Dataframe(out).to_csv("submission.csv",index = False)
|