USGS dataretrieval Python Package Peak Streamflow Examples

This notebook provides examples of using the Python dataretrieval package to retrieve annual peak streamflow data for United States Geological Survey (USGS) monitoring locations using the USGS Water Data API via the waterdata module. The waterdata module is the recommended way to access USGS water data and replaces the deprecated nwis module.

Install the Package

Use the following code to install the package if it doesn’t exist already within your Jupyter Python environment.

[1]:
!pip install dataretrieval
Requirement already satisfied: dataretrieval in /opt/hostedtoolcache/Python/3.13.13/x64/lib/python3.13/site-packages (0.1.dev1+g7f64c2de7)
Requirement already satisfied: httpx in /opt/hostedtoolcache/Python/3.13.13/x64/lib/python3.13/site-packages (from dataretrieval) (0.28.1)
Requirement already satisfied: pandas<4.0.0,>=2.0.0 in /opt/hostedtoolcache/Python/3.13.13/x64/lib/python3.13/site-packages (from dataretrieval) (3.0.3)
Requirement already satisfied: numpy>=1.26.0 in /opt/hostedtoolcache/Python/3.13.13/x64/lib/python3.13/site-packages (from pandas<4.0.0,>=2.0.0->dataretrieval) (2.4.6)
Requirement already satisfied: python-dateutil>=2.8.2 in /opt/hostedtoolcache/Python/3.13.13/x64/lib/python3.13/site-packages (from pandas<4.0.0,>=2.0.0->dataretrieval) (2.9.0.post0)
Requirement already satisfied: six>=1.5 in /opt/hostedtoolcache/Python/3.13.13/x64/lib/python3.13/site-packages (from python-dateutil>=2.8.2->pandas<4.0.0,>=2.0.0->dataretrieval) (1.17.0)
Requirement already satisfied: anyio in /opt/hostedtoolcache/Python/3.13.13/x64/lib/python3.13/site-packages (from httpx->dataretrieval) (4.13.0)
Requirement already satisfied: certifi in /opt/hostedtoolcache/Python/3.13.13/x64/lib/python3.13/site-packages (from httpx->dataretrieval) (2026.5.20)
Requirement already satisfied: httpcore==1.* in /opt/hostedtoolcache/Python/3.13.13/x64/lib/python3.13/site-packages (from httpx->dataretrieval) (1.0.9)
Requirement already satisfied: idna in /opt/hostedtoolcache/Python/3.13.13/x64/lib/python3.13/site-packages (from httpx->dataretrieval) (3.16)
Requirement already satisfied: h11>=0.16 in /opt/hostedtoolcache/Python/3.13.13/x64/lib/python3.13/site-packages (from httpcore==1.*->httpx->dataretrieval) (0.16.0)

Load the package so you can use it along with other packages used in this notebook.

[2]:
from IPython.display import display

from dataretrieval import waterdata

Basic Usage

This example uses the get_peaks() function to retrieve annual peak data for a USGS monitoring location. Commonly used arguments include:

  • monitoring_location_id (string or list of strings): USGS monitoring location id(s), formed as the agency code and site number joined by a hyphen (e.g. "USGS-01594440").

  • parameter_code (string or list of strings): 5-digit USGS parameter code(s). Peak records include both peak discharge (00060) and the corresponding gage height (00065); pass parameter_code="00060" to retrieve peak discharge only.

  • time (string): an ISO-8601 date or interval (e.g. "1953-01-01/1960-01-01") restricting the period retrieved.

Example 1: Retrieve peak discharge for two USGS monitoring locations

[3]:
site_ids = ["USGS-01594440", "USGS-040851325"]
peak_data = waterdata.get_peaks(
    monitoring_location_id=site_ids, parameter_code="00060"
)
print("Retrieved " + str(len(peak_data[0])) + " peak values.")
Retrieving: peaks · 1 page · 57 rows
No API key detected — register for higher rate limits at https://api.waterdata.usgs.gov/signup/
Retrieved 57 peak values.

Interpreting the Result

Each waterdata function returns a tuple of a pandas data frame and a metadata object. The data frame contains one row per annual peak, including the peak value, its time, and the water_year.

Once you’ve got the data frame, there are several useful things you can do to explore the data.

Display the data frame as a table.

[4]:
display(peak_data[0])
peak_id geometry time_series_id monitoring_location_id parameter_code unit_of_measure value last_modified time water_year year month day time_of_day peak_since
0 3ae666b2-6658-4cd5-b0d9-9435e327f30e POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 31100 2026-05-01 19:28:03.170712+00:00 1972-06-22 1972 1972 6 22 NaN None
1 c2058a02-3a57-4867-b1eb-973d552bfa54 POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 10600 2026-05-01 19:28:03.170712+00:00 1978-01-27 1978 1978 1 27 NaN None
2 513931e9-5d25-499b-9433-2e1b23f6a4a1 POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 11500 2026-05-01 19:28:03.170712+00:00 1979-09-07 1979 1979 9 7 NaN None
3 3c4e6c32-42f1-4515-b90c-3194394ac576 POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 3940 2026-05-01 19:28:03.170712+00:00 1979-10-11 1980 1979 10 11 NaN None
4 5df555c2-e9f7-4deb-bac5-3467d4eecf5c POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 1640 2026-05-01 19:28:03.170712+00:00 1981-02-24 1981 1981 2 24 NaN None
5 5efca373-025b-4980-89ce-b5dcaa6639d8 POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 3380 2026-05-01 19:28:03.170712+00:00 1982-02-04 1982 1982 2 4 NaN None
6 1d58764d-52c4-4344-bd29-9ab8852d1d89 POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 5750 2026-05-01 19:28:03.170712+00:00 1983-06-21 1983 1983 6 21 NaN None
7 65bedc17-bc1f-4412-897e-c9c7bc763552 POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 4340 2026-05-01 19:28:03.170712+00:00 1984-03-30 1984 1984 3 30 NaN None
8 6bedc7e5-5cc8-450d-b5a1-50449b20fe22 POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 4730 2026-05-01 19:28:03.170712+00:00 1985-02-13 1985 1985 2 13 NaN None
9 2b87d057-7c2b-4cb7-bf44-576545008979 POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 1520 2026-05-01 19:28:03.170712+00:00 1986-04-16 1986 1986 4 16 NaN None
10 bf952852-cee7-43bc-88c9-70b197c4e62e POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 4060 2026-05-01 19:28:03.170712+00:00 1986-12-25 1987 1986 12 25 NaN None
11 867ee68a-f8ea-4f55-a2e1-5e9df0077fcd POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 3510 2026-05-01 19:28:03.170712+00:00 1987-11-30 1988 1987 11 30 NaN None
12 10718b58-5763-44e5-a044-812c677f0b61 POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 9190 2026-05-01 19:28:03.170712+00:00 1989-05-07 1989 1989 5 7 NaN None
13 3dc8ee6a-c076-43d4-977a-e7252a94cac7 POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 3140 2026-05-01 19:28:03.170712+00:00 1990-05-30 1990 1990 5 30 NaN None
14 b9294137-2fad-4074-bd86-cf52f727ede6 POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 4750 2026-05-01 19:28:03.170712+00:00 1991-03-24 1991 1991 3 24 NaN None
15 537bb753-c6d6-49a1-a4dc-2b16b29256b5 POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 3200 2026-05-01 19:28:03.170712+00:00 1992-03-27 1992 1992 3 27 NaN None
16 dddd1dbe-b92a-4739-84b8-350918ecdd7c POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 5550 2026-05-01 19:28:03.170712+00:00 1993-03-05 1993 1993 3 5 NaN None
17 29e958a5-ebdb-4290-8fd8-843019b62155 POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 6960 2026-05-01 19:28:03.170712+00:00 1993-11-29 1994 1993 11 29 NaN None
18 942af9b6-7ace-4d6a-8cb2-f359e9511af3 POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 4100 2026-05-01 19:28:03.170712+00:00 1995-03-09 1995 1995 3 9 NaN None
19 09d0f0e1-c7ac-4136-b4f8-e4639b313386 POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 8280 2026-05-01 19:28:03.170712+00:00 1996-01-20 1996 1996 1 20 NaN None
20 9abb8890-e9c6-45bb-a302-678dc691207e POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 6900 2026-05-01 19:28:03.170712+00:00 1996-11-09 1997 1996 11 9 NaN None
21 01766a4b-dab4-4698-9c6a-3ef8f2e11153 POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 4840 2026-05-01 19:28:03.170712+00:00 1998-03-10 1998 1998 3 10 NaN None
22 9e4dd73c-afd1-4fd2-95f4-3f5b3af886c4 POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 8200 2026-05-01 19:28:03.170712+00:00 1999-09-17 1999 1999 9 17 NaN None
23 01ad0ff4-f40e-4ad1-93e4-9460f5de1353 POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 3640 2026-05-01 19:28:03.170712+00:00 2000-03-22 2000 2000 3 22 NaN None
24 3ea2d208-4285-4b9a-adeb-9b17b0d67fea POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 3800 2026-05-01 19:28:03.170712+00:00 2001-06-08 2001 2001 6 8 10:30:00+00:00 None
25 9ad09dcd-0e49-4baf-a5dd-cb3b1dfb4c1a POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 1510 2026-05-01 19:28:03.170712+00:00 2002-04-29 2002 2002 4 29 NaN None
26 406312f8-f7ff-4e68-ade4-8b4dd426bd44 POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 6990 2026-05-01 19:28:03.170712+00:00 2003-02-24 2003 2003 2 24 00:30:00+00:00 None
27 e4550eba-d130-48e4-9abe-f7077b130ee8 POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 5790 2026-05-01 19:28:03.170712+00:00 2003-12-12 2004 2003 12 12 15:45:00+00:00 None
28 c06f6cf2-8668-4f70-851a-b8d704a24807 POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 5210 2026-05-01 19:28:03.170712+00:00 2005-04-03 2005 2005 4 3 23:15:00+00:00 None
29 90bfb29a-82c2-4bba-85cb-f58b87874e28 POINT (-87.93621 44.5011) fdd843797b3246efb9f4aa344b5946cc USGS-040851325 00060 ft^3/s 267 2026-05-05 03:36:50.236554+00:00 2005-08-18 2005 2005 8 18 NaN None
30 b94cec80-5c1a-4c93-ad21-a6eea949ab67 POINT (-87.93621 44.5011) fdd843797b3246efb9f4aa344b5946cc USGS-040851325 00060 ft^3/s 288 2026-05-05 03:36:50.236554+00:00 2006-03-13 2006 2006 3 13 NaN None
31 b5fc68ad-d404-412a-8bdf-5df5c135887f POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 12700 2026-05-01 19:28:03.170712+00:00 2006-06-27 2006 2006 6 27 03:00:00+00:00 None
32 ce07ea88-b517-40a9-8a79-d45d0708c4ca POINT (-87.93621 44.5011) fdd843797b3246efb9f4aa344b5946cc USGS-040851325 00060 ft^3/s 301 2026-05-05 03:36:50.236554+00:00 2007-03-14 2007 2007 3 14 NaN None
33 33973c47-235c-49a6-ad3f-d4ae6dbbe64e POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 5520 2026-05-01 19:28:03.170712+00:00 2007-04-16 2007 2007 4 16 15:15:00+00:00 None
34 c64dc6a7-4a8d-414a-9eae-fbbb9f5faf93 POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 7860 2026-05-01 19:28:03.170712+00:00 2008-05-13 2008 2008 5 13 06:00:00+00:00 None
35 6d756602-b9e4-4063-ad59-870b56014f4d POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 4130 2026-05-01 19:28:03.170712+00:00 2009-06-19 2009 2009 6 19 09:45:00+00:00 None
36 29ffbe23-6ed6-4c4a-97be-062acb4a4877 POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 5780 2026-05-01 19:28:03.170712+00:00 2010-03-14 2010 2010 3 14 17:00:00+00:00 None
37 c4324b2a-1ef8-4aed-b3f2-26fbbd57cb79 POINT (-87.93621 44.5011) fdd843797b3246efb9f4aa344b5946cc USGS-040851325 00060 ft^3/s 386 2026-05-05 03:36:50.236554+00:00 2010-03-14 2010 2010 3 14 NaN None
38 6074a5e7-4cb5-4177-98c4-66399fb74609 POINT (-87.93621 44.5011) fdd843797b3246efb9f4aa344b5946cc USGS-040851325 00060 ft^3/s 436 2026-05-05 03:36:50.236554+00:00 2011-03-18 2011 2011 3 18 NaN None
39 ba30e845-6905-41ec-af84-92804d870a0e POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 16800 2026-05-01 19:28:03.170712+00:00 2011-09-08 2011 2011 9 8 17:15:00+00:00 None
40 3b9cb606-0785-4d3e-9e52-3efa0ad559d9 POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 4900 2026-05-01 19:28:03.170712+00:00 2011-12-09 2012 2011 12 9 01:30:00+00:00 None
41 3bc2c0c3-50d0-44fe-a640-32a8219364b1 POINT (-87.93621 44.5011) fdd843797b3246efb9f4aa344b5946cc USGS-040851325 00060 ft^3/s 150 2026-05-05 03:36:50.236554+00:00 2012-03-09 2012 2012 3 9 NaN None
42 7a277bcb-435f-4b1e-b67c-dd5dac818ac2 POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 10800 2026-05-01 19:28:03.170712+00:00 2012-10-31 2013 2012 10 31 03:00:00+00:00 None
43 9c628482-896d-4a8a-b12f-091b216cef52 POINT (-87.93621 44.5011) fdd843797b3246efb9f4aa344b5946cc USGS-040851325 00060 ft^3/s 409 2026-05-05 03:36:50.236554+00:00 2013-03-31 2013 2013 3 31 NaN None
44 c46e2dc3-6a5c-47ce-9322-dbf417d03caa POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 15600 2026-05-01 19:28:03.170712+00:00 2014-05-01 2014 2014 5 1 21:30:00+00:00 None
45 bd89314d-4ba6-429f-83fa-567e5f73ae25 POINT (-87.93621 44.5011) fdd843797b3246efb9f4aa344b5946cc USGS-040851325 00060 ft^3/s 429 2026-05-05 03:36:50.236554+00:00 2014-06-02 2014 2014 6 2 NaN None
46 84722b5e-c286-4d69-bdf1-75e05665adb0 POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 6610 2026-05-01 19:28:03.170712+00:00 2015-06-28 2015 2015 6 28 22:15:00+00:00 None
47 6caf417c-10b1-450d-957f-e5d43973afa9 POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 6140 2026-05-01 19:28:03.170712+00:00 2016-08-01 2016 2016 8 1 04:30:00+00:00 None
48 e7d3ffaa-e6ff-486e-bbd0-5fcbb11a6268 POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 4960 2026-05-01 19:28:03.170712+00:00 2017-07-30 2017 2017 7 30 05:15:00+00:00 None
49 99f75026-7ad8-4e9f-bec8-9da13af22530 POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 8360 2026-05-01 19:28:03.170712+00:00 2018-06-04 2018 2018 6 4 22:30:00+00:00 None
50 f8b816ae-c4a4-4f99-aa80-470856f0c334 POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 7220 2026-05-01 19:28:03.170712+00:00 2018-12-17 2019 2018 12 17 04:30:00+00:00 None
51 6ce447e3-ec2a-47df-bc1a-71ceff4e47fc POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 4340 2026-05-01 19:28:03.170712+00:00 2020-04-14 2020 2020 4 14 13:15:00+00:00 None
52 fd1f1fb2-0329-42ad-bdd1-866d46ef6461 POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 4000 2026-05-01 19:28:03.170712+00:00 2020-11-12 2021 2020 11 12 22:45:00+00:00 None
53 d353f7b9-eba2-41a9-baa8-fd787e199b23 POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 4590 2026-05-01 19:28:03.170712+00:00 2021-10-30 2022 2021 10 30 21:45:00+00:00 None
54 b68c3597-8210-4f49-8af6-05b14f003bb0 POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 3330 2026-05-01 19:28:03.170712+00:00 2022-12-16 2023 2022 12 16 19:15:00+00:00 None
55 850c52c4-5567-4e2f-b30a-fda4fcd0e121 POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 7400 2026-05-01 19:28:03.170712+00:00 2024-01-11 2024 2024 1 11 00:15:00+00:00 None
56 f9895515-e652-483e-97d2-70412cafa722 POINT (-76.69369 38.95592) 92a4e13a755d406abad1529f6add68e9 USGS-01594440 00060 ft^3/s 2320 2026-05-01 19:28:03.170712+00:00 2025-06-19 2025 2025 6 19 18:45:00+00:00 None

Show the data types of the columns in the resulting data frame.

[5]:
print(peak_data[0].dtypes)
peak_id                                   str
geometry                             geometry
time_series_id                            str
monitoring_location_id                    str
parameter_code                            str
unit_of_measure                           str
value                                   int64
last_modified             datetime64[us, UTC]
time                           datetime64[us]
water_year                              int64
year                                    int64
month                                   int64
day                                     int64
time_of_day                               str
peak_since                             object
dtype: object

The other part of the result is a metadata object describing the query that was executed. For example, you can access the URL that was assembled to retrieve the requested data from the USGS Water Data API.

[6]:
print("The query URL used to retrieve the data was: " + peak_data[1].url)
The query URL used to retrieve the data was: https://api.waterdata.usgs.gov/ogcapi/v0/collections/peaks/items?monitoring_location_id=USGS-01594440%2CUSGS-040851325&parameter_code=00060&skipGeometry=false&limit=50000

Peak records cover multiple parameters. By default get_peaks() returns both peak discharge (00060) and the gage height at the peak (00065); inspect the parameter_code column to see which are present.

[7]:
all_params = waterdata.get_peaks(monitoring_location_id="USGS-01594440")
print(all_params[0]["parameter_code"].unique())
Retrieving: peaks · 1 page · 97 rows
<StringArray>
['00060', '00065']
Length: 2, dtype: str

Additional Examples

Example 2: Retrieve peak discharge for a single monitoring location

[8]:
station = "USGS-06011000"
data3 = waterdata.get_peaks(monitoring_location_id=station, parameter_code="00060")
display(data3[0])
Retrieving: peaks · 1 page · 29 rows
peak_id geometry time_series_id monitoring_location_id parameter_code unit_of_measure value last_modified time water_year year month day time_of_day peak_since
0 8489606e-89e2-4cab-9758-969be99c7efc POINT (-112.05641 44.64793) 1803f93f789a46f093cc4e7695554bdb USGS-06011000 00060 ft^3/s 964 2026-05-06 17:32:44.238660+00:00 1937-04-28 1937 1937 4 28.0 None None
1 2091dc02-2a41-4bd7-a38d-018aff41d2d3 POINT (-112.05641 44.64793) 1803f93f789a46f093cc4e7695554bdb USGS-06011000 00060 ft^3/s 1030 2026-05-06 17:32:44.238660+00:00 1938-04-27 1938 1938 4 27.0 None None
2 54d4673d-232b-4c0f-84ac-3f2cfa25eae6 POINT (-112.05641 44.64793) 1803f93f789a46f093cc4e7695554bdb USGS-06011000 00060 ft^3/s 829 2026-05-06 17:32:44.238660+00:00 1939-04-19 1939 1939 4 19.0 None None
3 d65a02cd-7e38-419e-9ca0-f82f7ffb66bb POINT (-112.05641 44.64793) 1803f93f789a46f093cc4e7695554bdb USGS-06011000 00060 ft^3/s 590 2026-05-06 17:32:44.238660+00:00 1940-04-14 1940 1940 4 14.0 None None
4 873cdcce-0b39-4328-b5d2-279318692e40 POINT (-112.05641 44.64793) 1803f93f789a46f093cc4e7695554bdb USGS-06011000 00060 ft^3/s 430 2026-05-06 17:32:44.238660+00:00 1941-04-11 1941 1941 4 11.0 None None
5 95dc6356-39c1-4a3b-b6e4-05f346366e70 POINT (-112.05641 44.64793) 1803f93f789a46f093cc4e7695554bdb USGS-06011000 00060 ft^3/s 883 2026-05-06 17:32:44.238660+00:00 1942-04-12 1942 1942 4 12.0 None None
6 3889ccaf-cac9-40fd-8900-56ee32fad15f POINT (-112.05641 44.64793) 1803f93f789a46f093cc4e7695554bdb USGS-06011000 00060 ft^3/s 681 2026-05-06 17:32:44.238660+00:00 1945-05-04 1945 1945 5 4.0 None None
7 13c36dc5-80ec-43b0-96f5-62a072a7d2d3 POINT (-112.05641 44.64793) 1803f93f789a46f093cc4e7695554bdb USGS-06011000 00060 ft^3/s 961 2026-05-06 17:32:44.238660+00:00 1946-04-21 1946 1946 4 21.0 None None
8 57120111-fa2d-476e-bdf7-603cbfb03350 POINT (-112.05641 44.64793) 1803f93f789a46f093cc4e7695554bdb USGS-06011000 00060 ft^3/s 781 2026-05-06 17:32:44.238660+00:00 1947-05-02 1947 1947 5 2.0 None None
9 8e99a440-8114-4ded-9d68-5a06f9d7c7ea POINT (-112.05641 44.64793) 1803f93f789a46f093cc4e7695554bdb USGS-06011000 00060 ft^3/s 820 2026-05-06 17:32:44.238660+00:00 1948-04-30 1948 1948 4 30.0 None None
10 4de7db39-d552-4e44-9625-e80af36f552c POINT (-112.05641 44.64793) 1803f93f789a46f093cc4e7695554bdb USGS-06011000 00060 ft^3/s 726 2026-05-06 17:32:44.238660+00:00 1949-04-27 1949 1949 4 27.0 None None
11 f9a71afe-de67-497e-a6d4-9f660041f0db POINT (-112.05641 44.64793) 1803f93f789a46f093cc4e7695554bdb USGS-06011000 00060 ft^3/s 781 2026-05-06 17:32:44.238660+00:00 1950-04-22 1950 1950 4 22.0 None None
12 f2dac095-aeac-4999-bfb7-4092d1651536 POINT (-112.05641 44.64793) 1803f93f789a46f093cc4e7695554bdb USGS-06011000 00060 ft^3/s 640 2026-05-06 17:32:44.238660+00:00 1951-04-23 1951 1951 4 23.0 None None
13 42dfc367-59cf-4d12-ab62-405f856697ca POINT (-112.05641 44.64793) 1803f93f789a46f093cc4e7695554bdb USGS-06011000 00060 ft^3/s 1360 2026-05-06 17:32:44.238660+00:00 1952-04-30 1952 1952 4 30.0 None None
14 c8c99d0a-1172-4ef4-adf4-892331793e1e POINT (-112.05641 44.64793) 1803f93f789a46f093cc4e7695554bdb USGS-06011000 00060 ft^3/s 715 2026-05-06 17:32:44.238660+00:00 1953-05-05 1953 1953 5 5.0 None None
15 dd627cb7-9bc0-43fc-a492-cbc38d0b48d7 POINT (-112.05641 44.64793) 1803f93f789a46f093cc4e7695554bdb USGS-06011000 00060 ft^3/s 546 2026-05-06 17:32:44.238660+00:00 1954-04-23 1954 1954 4 23.0 None None
16 c1e1d9c4-6ad8-4280-baf8-742511f5e9ef POINT (-112.05641 44.64793) 1803f93f789a46f093cc4e7695554bdb USGS-06011000 00060 ft^3/s 596 2026-05-06 17:32:44.238660+00:00 1956-04-24 1956 1956 4 24.0 None None
17 d2f8e901-5fe4-41ca-944a-fb430e30b678 POINT (-112.05641 44.64793) 1803f93f789a46f093cc4e7695554bdb USGS-06011000 00060 ft^3/s 1020 2026-05-06 17:32:44.238660+00:00 1957-05-06 1957 1957 5 6.0 None None
18 8eb49b9a-dad1-4017-b07f-5a34b8918062 POINT (-112.05641 44.64793) 1803f93f789a46f093cc4e7695554bdb USGS-06011000 00060 ft^3/s 590 2026-05-06 17:32:44.238660+00:00 1958-04-30 1958 1958 4 30.0 None None
19 184e855e-57e8-4521-a570-97d9e15e8973 POINT (-112.05641 44.64793) 1803f93f789a46f093cc4e7695554bdb USGS-06011000 00060 ft^3/s 352 2026-05-06 17:32:44.238660+00:00 1959-04-22 1959 1959 4 22.0 None None
20 57371ba5-8341-4d3e-ac4a-3d6f74e2a515 POINT (-112.05641 44.64793) 1803f93f789a46f093cc4e7695554bdb USGS-06011000 00060 ft^3/s 800 2026-05-06 17:32:44.238660+00:00 1960-04-08 1960 1960 4 8.0 None None
21 185789b2-59cd-42ff-b37f-f1fc734f85b3 POINT (-112.05641 44.64793) 1803f93f789a46f093cc4e7695554bdb USGS-06011000 00060 ft^3/s 300 2026-05-06 17:32:44.238660+00:00 1961-04-05 1961 1961 4 5.0 None None
22 94025d15-a950-46ee-915e-15eb9e009819 POINT (-112.05641 44.64793) 1803f93f789a46f093cc4e7695554bdb USGS-06011000 00060 ft^3/s 900 2026-05-06 17:32:44.238660+00:00 1962-04-27 1962 1962 4 27.0 None None
23 945a0c09-7b64-4f4b-91bc-cd1d83b3a248 POINT (-112.05641 44.64793) 1803f93f789a46f093cc4e7695554bdb USGS-06011000 00060 ft^3/s 486 2026-05-06 17:32:44.238660+00:00 1963-04-20 1963 1963 4 20.0 None None
24 10ae014a-2a37-466a-aba4-78540e1fda47 POINT (-112.05641 44.64793) 1803f93f789a46f093cc4e7695554bdb USGS-06011000 00060 ft^3/s 751 2026-05-06 17:32:44.238660+00:00 1964-04-28 1964 1964 4 28.0 None None
25 59a2fcb8-bed1-4ac8-8582-bb63fb9f9e11 POINT (-112.05641 44.64793) 1803f93f789a46f093cc4e7695554bdb USGS-06011000 00060 ft^3/s 958 2026-05-06 17:32:44.238660+00:00 1965-04-28 1965 1965 4 28.0 None None
26 49ea8bac-0e8a-4bec-b981-49a69c925ca7 POINT (-112.05641 44.64793) 1803f93f789a46f093cc4e7695554bdb USGS-06011000 00060 ft^3/s 524 2026-05-06 17:32:44.238660+00:00 1966-04-16 1966 1966 4 16.0 None None
27 6dee7073-0873-4765-91f1-ed8afb934620 POINT (-112.05641 44.64793) 1803f93f789a46f093cc4e7695554bdb USGS-06011000 00060 ft^3/s 604 2026-05-06 17:32:44.238660+00:00 1967-05-12 1967 1967 5 12.0 None None
28 21969473-a764-470b-8ec6-5fa316dbe362 POINT (-112.05641 44.64793) 1803f93f789a46f093cc4e7695554bdb USGS-06011000 00060 ft^3/s 1180 2026-05-06 17:32:44.238660+00:00 1984-05-01 1984 1984 5 NaN None None

Example 3: Retrieve peak discharge for a monitoring location between two dates

[9]:
data4 = waterdata.get_peaks(
    monitoring_location_id=station,
    parameter_code="00060",
    time="1953-01-01/1960-01-01",
)
display(data4[0])
Retrieving: peaks · 1 page · 6 rows
peak_id geometry time_series_id monitoring_location_id parameter_code unit_of_measure value last_modified time water_year year month day time_of_day peak_since
0 c8c99d0a-1172-4ef4-adf4-892331793e1e POINT (-112.05641 44.64793) 1803f93f789a46f093cc4e7695554bdb USGS-06011000 00060 ft^3/s 715 2026-05-06 17:32:44.238660+00:00 1953-05-05 1953 1953 5 5 None None
1 dd627cb7-9bc0-43fc-a492-cbc38d0b48d7 POINT (-112.05641 44.64793) 1803f93f789a46f093cc4e7695554bdb USGS-06011000 00060 ft^3/s 546 2026-05-06 17:32:44.238660+00:00 1954-04-23 1954 1954 4 23 None None
2 c1e1d9c4-6ad8-4280-baf8-742511f5e9ef POINT (-112.05641 44.64793) 1803f93f789a46f093cc4e7695554bdb USGS-06011000 00060 ft^3/s 596 2026-05-06 17:32:44.238660+00:00 1956-04-24 1956 1956 4 24 None None
3 d2f8e901-5fe4-41ca-944a-fb430e30b678 POINT (-112.05641 44.64793) 1803f93f789a46f093cc4e7695554bdb USGS-06011000 00060 ft^3/s 1020 2026-05-06 17:32:44.238660+00:00 1957-05-06 1957 1957 5 6 None None
4 8eb49b9a-dad1-4017-b07f-5a34b8918062 POINT (-112.05641 44.64793) 1803f93f789a46f093cc4e7695554bdb USGS-06011000 00060 ft^3/s 590 2026-05-06 17:32:44.238660+00:00 1958-04-30 1958 1958 4 30 None None
5 184e855e-57e8-4521-a570-97d9e15e8973 POINT (-112.05641 44.64793) 1803f93f789a46f093cc4e7695554bdb USGS-06011000 00060 ft^3/s 352 2026-05-06 17:32:44.238660+00:00 1959-04-22 1959 1959 4 22 None None