Update README.md
Browse files
README.md
CHANGED
|
@@ -69,7 +69,7 @@ The dataset is provided in CSV format and includes the aforementioned fields
|
|
| 69 |
### Sample ( 1985 March to April )
|
| 70 |
|
| 71 |
The following script can be used to load a sample version of the dataset, which contains all the patent applications
|
| 72 |
-
that were published from March until April in 1985.
|
| 73 |
|
| 74 |
|
| 75 |
```python
|
|
@@ -198,6 +198,8 @@ def load_csvs_from_huggingface(start_date, end_date, columns_to_keep=None):
|
|
| 198 |
|
| 199 |
```
|
| 200 |
|
|
|
|
|
|
|
| 201 |
```python
|
| 202 |
|
| 203 |
start_date = "1985-03-01"
|
|
@@ -208,17 +210,23 @@ df = load_csvs_from_huggingface(start_date, end_date)
|
|
| 208 |
|
| 209 |
```
|
| 210 |
|
| 211 |
-
|
| 212 |
|
| 213 |
-
To load the complete dataset using the Hugging Face `datasets` library:
|
| 214 |
|
| 215 |
```python
|
| 216 |
-
from datasets import load_dataset
|
| 217 |
|
| 218 |
-
|
| 219 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 220 |
|
| 221 |
-
This will load the dataset into a `DatasetDict` object, please make sure you have enough disk space.
|
| 222 |
|
| 223 |
## Google Colab Analytics
|
| 224 |
|
|
|
|
| 69 |
### Sample ( 1985 March to April )
|
| 70 |
|
| 71 |
The following script can be used to load a sample version of the dataset, which contains all the patent applications
|
| 72 |
+
that were published from March until April in 1985, with all columns and once with selected columns.
|
| 73 |
|
| 74 |
|
| 75 |
```python
|
|
|
|
| 198 |
|
| 199 |
```
|
| 200 |
|
| 201 |
+
Load All Columns
|
| 202 |
+
|
| 203 |
```python
|
| 204 |
|
| 205 |
start_date = "1985-03-01"
|
|
|
|
| 210 |
|
| 211 |
```
|
| 212 |
|
| 213 |
+
Load Selected Columns
|
| 214 |
|
|
|
|
| 215 |
|
| 216 |
```python
|
|
|
|
| 217 |
|
| 218 |
+
columns_to_keep = [
|
| 219 |
+
"applicants",
|
| 220 |
+
"lang"
|
| 221 |
+
]
|
| 222 |
+
|
| 223 |
+
start_date = "1985-03-01"
|
| 224 |
+
end_date = "1985-04-30"
|
| 225 |
+
|
| 226 |
+
df = load_csvs_from_huggingface(start_date, end_date, columns_to_keep)
|
| 227 |
+
|
| 228 |
+
|
| 229 |
|
|
|
|
| 230 |
|
| 231 |
## Google Colab Analytics
|
| 232 |
|