Skip to content

Commit 0bba2ef

Browse files
committed
Update docs
1 parent cdb8fd4 commit 0bba2ef

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,16 @@ To add a new dataset file, please follow these steps:
5151
- retrieve and return the local path
5252

5353
```python
54-
In [4]: filepath = DATASETS.fetch('jan-17-co-asos.txt.xz')
54+
In [4]: filepath = DATASETS.fetch('jan-17-co-asos.txt.xz')
5555

56-
In [5]: filepath
57-
Out[5]: '/Users/abanihi/Library/Caches/pythia-datasets/jan-17-co-asos.txt.xz'
56+
In [5]: filepath
57+
Out[5]: '/Users/abanihi/Library/Caches/pythia-datasets/jan-17-co-asos.txt.xz'
58+
```
59+
60+
- Once you have access to the local filepath, you can then use it to load your dataset into pandas or xarray or your package of choice:
61+
62+
```python
63+
In [6]: df = pd.read_csv(filepath)
5864
```
5965

6066
[github-ci-badge]: https://img.shields.io/github/workflow/status/ProjectPythia/pythia-datasets/CI?label=CI&logo=github&style=for-the-badge
@@ -71,7 +77,3 @@ To add a new dataset file, please follow these steps:
7177
[conda-link]: https://anaconda.org/conda-forge/pythia-datasets
7278
[license-badge]: https://img.shields.io/github/license/ProjectPythia/pythia-datasets?style=for-the-badge
7379
[repo-link]: https://github.com/ProjectPythia/pythia-datasets
74-
75-
```
76-
77-
```

0 commit comments

Comments
 (0)