File size: 455 Bytes
8e93e52
 
895f42f
8e93e52
 
 
895f42f
8e93e52
 
895f42f
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# NOTE: run with different random seed
import datasets
import pandas as pd


data = datasets.load_dataset('program_synthesis.py', 'text')['train']
data.to_csv('_t.text.csv', index=False)

data = datasets.load_dataset('program_synthesis.py', 'list')['train']
data.to_csv('_t.list.csv', index=False)


df_list = pd.read_csv('test.list.csv')
df_text = pd.read_csv('test.text.csv')
df = pd.concat((df_list, df_text))
df.to_csv('sample_test.csv', index=False)