severo HF staff commited on
Commit
7970a34
1 Parent(s): cac0f89

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +31 -2
README.md CHANGED
@@ -3,7 +3,7 @@ configs:
3
  - config_name: default
4
  data_files: "data.csv"
5
  delimiter: "|"
6
- header: 0
7
  names: ["kind", "sound"]
8
  size_categories:
9
  - n<1K
@@ -11,4 +11,33 @@ size_categories:
11
 
12
  # [doc] formats - csv - 3
13
 
14
- This dataset contains one csv file at the root. We provide several options in the YAML config (`"|"` delimiter, name of the columns, index of the header row). The reference for the options is the [documentation of pandas.read_csv()](https://pandas.pydata.org/docs/reference/api/pandas.read_csv.html).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  - config_name: default
4
  data_files: "data.csv"
5
  delimiter: "|"
6
+ header: 1
7
  names: ["kind", "sound"]
8
  size_categories:
9
  - n<1K
 
11
 
12
  # [doc] formats - csv - 3
13
 
14
+
15
+ This dataset contains one csv file at the root:
16
+
17
+ - [data.csv](./data.csv)
18
+
19
+ ```csv
20
+ # ignored comment
21
+ col1|col2
22
+ dog|woof
23
+ cat|meow
24
+ pokemon|pika
25
+ human|hello
26
+ ```
27
+
28
+ We define the config name in the YAML config, as well as the exact location of the file, the separator as `"|"`, the name of the columns, and the number of rows to ignore (the row #1 is a row of column headers, that will be replaced by the `names` option, and the row #0 is ignored). The reference for the options is the [documentation of pandas.read_csv()](https://pandas.pydata.org/docs/reference/api/pandas.read_csv.html).
29
+
30
+ ```yaml
31
+ ---
32
+ configs:
33
+ - config_name: default
34
+ data_files: "data.csv"
35
+ delimiter: "|"
36
+ header: 1
37
+ names: ["kind", "sound"]
38
+ size_categories:
39
+ - n<1K
40
+ ---
41
+ ```
42
+
43
+