anastasiiamishchuk commited on
Commit
ce38c28
·
verified ·
1 Parent(s): b17f3b3

Update script.py

Browse files
Files changed (1) hide show
  1. script.py +10 -10
script.py CHANGED
@@ -123,18 +123,18 @@ if __name__ == "__main__":
123
  })
124
 
125
  print('------------ Saving results ---------------')
126
- # sub = pd.DataFrame(solution, columns=["order_id", "wf_vertices", "wf_edges"])
127
- # sub.to_parquet("submission.parquet", index=False)
128
 
129
- import pyarrow as pa
130
- import pyarrow.parquet as pq
131
 
132
- table = pa.table({
133
- "order_id": [s["order_id"] for s in solution],
134
- "wf_vertices": [s["wf_vertices"] for s in solution],
135
- "wf_edges": [s["wf_edges"] for s in solution],
136
- })
137
 
138
- pq.write_table(table, "submission.parquet")
139
 
140
  print("------------ Done ------------ ")
 
123
  })
124
 
125
  print('------------ Saving results ---------------')
126
+ sub = pd.DataFrame(solution, columns=["order_id", "wf_vertices", "wf_edges"])
127
+ sub.to_parquet("submission.parquet", index=False)
128
 
129
+ # import pyarrow as pa
130
+ # import pyarrow.parquet as pq
131
 
132
+ # table = pa.table({
133
+ # "order_id": [s["order_id"] for s in solution],
134
+ # "wf_vertices": [s["wf_vertices"] for s in solution],
135
+ # "wf_edges": [s["wf_edges"] for s in solution],
136
+ # })
137
 
138
+ # pq.write_table(table, "submission.parquet")
139
 
140
  print("------------ Done ------------ ")