Update README.md
Browse files
README.md
CHANGED
@@ -22,6 +22,23 @@ dataset_info:
|
|
22 |
|
23 |
This is a dataset of [TrpFrog](https://trpfrog.net)'s icons. By the way, what do you use this for? 🤔
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
## License
|
26 |
|
27 |
MIT License
|
|
|
22 |
|
23 |
This is a dataset of [TrpFrog](https://trpfrog.net)'s icons. By the way, what do you use this for? 🤔
|
24 |
|
25 |
+
## How to use
|
26 |
+
|
27 |
+
```py
|
28 |
+
from datasets import load_dataset
|
29 |
+
|
30 |
+
dataset = load_dataset("TrpFrog/trpfrog-icons")
|
31 |
+
```
|
32 |
+
|
33 |
+
```py
|
34 |
+
# print all data
|
35 |
+
for data in dataset["train"]:
|
36 |
+
print(data)
|
37 |
+
|
38 |
+
# remove not green icons
|
39 |
+
dataset = dataset.filter(lambda x: x["label"] == 0)
|
40 |
+
```
|
41 |
+
|
42 |
## License
|
43 |
|
44 |
MIT License
|