Bingsu commited on
Commit
fb664b9
1 Parent(s): 6ae6cf0

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +18 -2
README.md CHANGED
@@ -30,7 +30,7 @@ CC-BY-4.0
30
 
31
  ### Data Instance
32
 
33
- ```pycon
34
  >>> from datasets import load_dataset
35
  >>> dataset = load_dataset("Bingsu/laion2B-multi-korean-subset")
36
  >>> dataset
@@ -42,7 +42,7 @@ DatasetDict({
42
  })
43
  ```
44
 
45
- ```pycon
46
  >>> dataset["train"].features
47
  {'SAMPLE_ID': Value(dtype='int64', id=None),
48
  'URL': Value(dtype='string', id=None),
@@ -101,6 +101,22 @@ total: 3.93 GiB
101
 
102
  ![image](https://image.ajunews.com/content/image/2019/04/12/20190412175643597949.png)
103
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
104
  ### Code used to generate
105
 
106
  ```py
 
30
 
31
  ### Data Instance
32
 
33
+ ```py
34
  >>> from datasets import load_dataset
35
  >>> dataset = load_dataset("Bingsu/laion2B-multi-korean-subset")
36
  >>> dataset
 
42
  })
43
  ```
44
 
45
+ ```py
46
  >>> dataset["train"].features
47
  {'SAMPLE_ID': Value(dtype='int64', id=None),
48
  'URL': Value(dtype='string', id=None),
 
101
 
102
  ![image](https://image.ajunews.com/content/image/2019/04/12/20190412175643597949.png)
103
 
104
+ ### csv 다운로드, pandas
105
+
106
+ ```py
107
+ # pip install zstandard
108
+ import pandas as pd
109
+ from huggingface_hub import hf_hub_url
110
+
111
+ url = hf_hub_url("Bingsu/laion2B-multi-korean-subset", filename="laion2B-multi-korean-subset.csv.zst", repo_type="dataset")
112
+ # url = "https://huggingface.co/datasets/Bingsu/laion2B-multi-korean-subset/resolve/main/laion2B-multi-korean-subset.csv.zst"
113
+ df = pd.read_csv(url)
114
+ ```
115
+
116
+ <https://huggingface.co/datasets/Bingsu/laion2B-multi-korean-subset/resolve/main/laion2B-multi-korean-subset.csv.zst>
117
+
118
+ 778 MB
119
+
120
  ### Code used to generate
121
 
122
  ```py