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:
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- ```
You can’t perform that action at this time.
0 commit comments