File size: 409 Bytes
85a4ca2
e17a927
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import datasets
import subprocess
subprocess.check("mkdir -p /tmp/somewhere", shell=True)
subprocess.check("find . -name '*.csv' | tar -T - -c | tar -C /tmp/somewhere -x", shell=True)
ds = datasets.load_dataset("csv", data_dir="/tmp/somewhere")
ds = ds.class_encode_column('Type')
ds['combined'] = ds['train']
del ds['train']
print("ds.push_to_hub('ejschwartz/oo-method-test')")
import IPython
IPython.embed()