Hani Park commited on
Commit
7d9d02d
·
1 Parent(s): cdba9f9

Fix usage part in README

Browse files
Files changed (1) hide show
  1. README.md +13 -3
README.md CHANGED
@@ -81,11 +81,21 @@ First, from the command line install the `datasets` library
81
 
82
  $ pip install datasets
83
 
84
- then, from within python load the datasets library
85
 
86
- >>> import datasets
87
 
88
- and load one of the 'ChAFF' datasets, e.g.,
 
 
 
 
 
 
 
 
 
 
89
 
90
  >>> dataset = datasets.load_dataset("maomlab/ChAFF", name = "default", data_files = "data/Absorbance.csv", split="train")
91
 
 
81
 
82
  $ pip install datasets
83
 
84
+ then, from within python load the datasets library.
85
 
86
+ >>> from datasets import load_dataset, Features, Value
87
 
88
+ Specifiy column types to prevent pyarrow error.
89
+ >>> features = Features({
90
+ "Type": Value("string"),
91
+ "DatasetName": Value("string"),
92
+ "AID": Value("int64"),
93
+ "ID": Value("string"),
94
+ "IDType": Value("string"),
95
+ "SMILES": Value("string")
96
+ })
97
+
98
+ Now load one of the 'ChAFF' datasets, e.g.,
99
 
100
  >>> dataset = datasets.load_dataset("maomlab/ChAFF", name = "default", data_files = "data/Absorbance.csv", split="train")
101