This PR adds an include_expanded_metadata switch to nwis_client.iv.IVDataService.get. This is a boolean switch that adds the following columns to the resulting dataframe: ['siteName', 'srs', 'latitude', 'longitude', 'siteTypeCd', 'hucCd', 'countyCd', 'stateCd']. These data were always present in the raw json, but were previously ignored. This addition should benefit any geospatial applications.
Additions
New include_expanded_metadata parameter. Default is set to False.
Removals
Removed infer_datetime option per pandas``UserWarning from datetime conversions.
Changes
No change in overall behavior.
Testing
Added two new tests for get_raw and get using the new parameter.
Notes
-
Todos
-
Checklist
[x] PR has an informative and human-readable title
[x] PR is well outlined and documented. See #12 for an example
[x] Changes are limited to a single goal (no scope creep)
[x] Code can be automatically merged (no conflicts)
This PR adds an
include_expanded_metadata
switch tonwis_client.iv.IVDataService.get
. This is a boolean switch that adds the following columns to the resulting dataframe:['siteName', 'srs', 'latitude', 'longitude', 'siteTypeCd', 'hucCd', 'countyCd', 'stateCd']
. These data were always present in the raw json, but were previously ignored. This addition should benefit any geospatial applications.Additions
include_expanded_metadata
parameter. Default is set toFalse
.Removals
infer_datetime
option perpandas``UserWarning
from datetime conversions.Changes
Testing
get_raw
andget
using the new parameter.Notes
-
Todos
-
Checklist