import pandas as pd print("################################") import os os.listdir("/tmp/data") test_df = pd.read_csv("/tmp/data/test.csv") print("################################") df = pd.DataFrame([(f"testid{i:04}", 0) for i in range(837)], columns=["id", "pred"]) df.to_csv("submission.csv", index=None)