pavan-ramkumar commited on
Commit
c7fb482
·
verified ·
1 Parent(s): b8356e2

Add dataset card with metadata

Browse files
Files changed (1) hide show
  1. README.md +31 -1
README.md CHANGED
@@ -11,6 +11,7 @@ size_categories:
11
  source_datasets:
12
  - original
13
  pretty_name: SLAF Dataset
 
14
  ---
15
 
16
  # Dataset Card for SLAF Dataset
@@ -149,4 +150,33 @@ Users should be made aware of the risks, biases and limitations of the dataset.
149
 
150
  ## Dataset Card Contact
151
 
152
- [More Information Needed]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  source_datasets:
12
  - original
13
  pretty_name: SLAF Dataset
14
+ viewer: true
15
  ---
16
 
17
  # Dataset Card for SLAF Dataset
 
150
 
151
  ## Dataset Card Contact
152
 
153
+ [More Information Needed]
154
+ ## Usage
155
+
156
+ This dataset is in SLAF (Sparse Lazy Array Format) format. You can use it with either the `slafdb` library (for SLAF format) or `pylance` library (for direct Lance access).
157
+
158
+ ### Using SLAF (Recommended)
159
+
160
+ ```bash
161
+ pip install slafdb
162
+ ```
163
+
164
+ ```python
165
+ hf_path = 'hf://datasets/pavan-ramkumar/test_direct_upload.slaf'
166
+ from slaf import SLAFArray
167
+ slaf_array = SLAFArray(hf_path)
168
+ slaf_array.query("SELECT * FROM cells LIMIT 5")
169
+ ```
170
+
171
+ ### Using Lance Directly
172
+
173
+ ```bash
174
+ pip install pylance
175
+ ```
176
+
177
+ ```python
178
+ import lance
179
+ hf_path = 'hf://datasets/pavan-ramkumar/test_direct_upload.slaf'
180
+ ds = lance.dataset(f"{hf_path}/cells.lance")
181
+ ds.sample(10)
182
+ ```