File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -51,10 +51,16 @@ To add a new dataset file, please follow these steps:
51
51
- retrieve and return the local path
52
52
53
53
``` 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' )
55
55
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)
58
64
```
59
65
60
66
[ 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:
71
77
[ conda-link ] : https://anaconda.org/conda-forge/pythia-datasets
72
78
[ license-badge ] : https://img.shields.io/github/license/ProjectPythia/pythia-datasets?style=for-the-badge
73
79
[ repo-link ] : https://github.com/ProjectPythia/pythia-datasets
74
-
75
- ```
76
-
77
- ```
You can’t perform that action at this time.
0 commit comments