Update README.md
Browse files
README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: eupl-1.1
|
| 3 |
-
language:
|
| 4 |
-
- en
|
| 5 |
-
size_categories:
|
| 6 |
-
- 100K<n<1M
|
| 7 |
-
---
|
| 8 |
|
| 9 |
English entries only of https://huggingface.co/datasets/EuropeanParliament/Eurovoc.
|
| 10 |
|
|
@@ -12,14 +12,21 @@ Last update 16.05.2024: 352011 entries.
|
|
| 12 |
|
| 13 |
## Usage
|
| 14 |
|
|
|
|
| 15 |
Simply download the parquet file and read with pandas or polars.
|
| 16 |
-
|
| 17 |
-
### Pandas / Polars
|
| 18 |
-
|
| 19 |
```python
|
| 20 |
import pandas as pd # or import polars as pd
|
| 21 |
df = pd.read_parquet("CELLAR_EN_16_05_2024.parquet")
|
| 22 |
df
|
| 23 |
```
|
| 24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |

|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: eupl-1.1
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
size_categories:
|
| 6 |
+
- 100K<n<1M
|
| 7 |
+
---
|
| 8 |
|
| 9 |
English entries only of https://huggingface.co/datasets/EuropeanParliament/Eurovoc.
|
| 10 |
|
|
|
|
| 12 |
|
| 13 |
## Usage
|
| 14 |
|
| 15 |
+
### With Pandas / Polars
|
| 16 |
Simply download the parquet file and read with pandas or polars.
|
|
|
|
|
|
|
|
|
|
| 17 |
```python
|
| 18 |
import pandas as pd # or import polars as pd
|
| 19 |
df = pd.read_parquet("CELLAR_EN_16_05_2024.parquet")
|
| 20 |
df
|
| 21 |
```
|
| 22 |
|
| 23 |
+
### With HF datsets
|
| 24 |
+
|
| 25 |
+
```python
|
| 26 |
+
from datasets import load_dataset
|
| 27 |
+
ds = load_dataset("do-me/Eurovoc_en")
|
| 28 |
+
df = ds["train"].to_pandas()
|
| 29 |
+
df
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |

|