File size: 314 Bytes
e162919 4305e1f dd3b54d c15ac6a 4305e1f e162919 65cc5fa |
1 2 3 4 5 6 7 8 9 |
import pandas as pd
from datasets import load_dataset
dataset_remote = load_dataset("parquet", data_files={'test': '/tmp/data/data/test-00000-of-00001.parquet'})
out = []
for id in dataset_remote["test"]["id"]:
out.append(dict(id = id, pred = "flux"))
pd.DataFrame(out).to_csv("submission.csv",index = False)
|