|
87 | 87 | "metadata": {}, |
88 | 88 | "source": [ |
89 | 89 | "## Examples\n", |
90 | | - "Let's get into some examples using the functions listed above. First, we need to load the `waterdata` module and a few other packages and functions to go through the examples. To run the entirety of this notebook, you will need to install `dataretrieval`, `matplotlib`, and `geopandas` packages. `matplotlib` is needed to create the plots, and `geopandas` is needed to create the interactive maps." |
91 | | - ] |
92 | | - }, |
93 | | - { |
94 | | - "cell_type": "code", |
95 | | - "execution_count": null, |
96 | | - "id": "cd626a14", |
97 | | - "metadata": {}, |
98 | | - "outputs": [], |
99 | | - "source": [ |
100 | | - "# Install necessary packages to run notebook\n", |
| 90 | + "Let's get into some examples using the functions listed above. First, we need to load the `waterdata` module and a few other packages and functions to go through the examples. To run the entirety of this notebook, you will need to install `dataretrieval`, `matplotlib`, and `geopandas` packages (plus dependencies). `matplotlib` is needed to create the plots, and `geopandas` is needed to create the interactive maps.\n", |
| 91 | + "\n", |
| 92 | + "Note that if you use conda rather than pip, you do not need to install folium and mapclassify separately, as they are included in the conda-forge geopandas install.\n", |
| 93 | + "\n", |
| 94 | + "```python\n", |
101 | 95 | "!pip install dataretrieval\n", |
102 | 96 | "!pip install matplotlib\n", |
103 | | - "!pip install geopandas" |
| 97 | + "!pip install geopandas\n", |
| 98 | + "!pip install folium\n", |
| 99 | + "!pip install mapclassify\n", |
| 100 | + "``` " |
104 | 101 | ] |
105 | 102 | }, |
106 | 103 | { |
|
156 | 153 | "outputs": [], |
157 | 154 | "source": [ |
158 | 155 | "streamflow_pcodes = pcodes[pcodes['parameter_name'].str.contains('streamflow|discharge', case=False, na=False)]\n", |
159 | | - "display(streamflow_pcodes[['parameter_code_id', 'parameter_name']])" |
| 156 | + "display(streamflow_pcodes[['parameter_code', 'parameter_name']])" |
160 | 157 | ] |
161 | 158 | }, |
162 | 159 | { |
|
599 | 596 | ], |
600 | 597 | "metadata": { |
601 | 598 | "kernelspec": { |
602 | | - "display_name": "waterdata-demo", |
| 599 | + "display_name": "waterdata-demo-pip", |
603 | 600 | "language": "python", |
604 | 601 | "name": "python3" |
605 | 602 | }, |
|
0 commit comments