Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dataretrieval/nwis.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
WATERDATA_SERVICES = ['qwdata', 'measurements', 'peaks', 'pmcodes', 'water_use', 'ratings']


def format_response(df, service=None, **kwargs):
def format_response(df: pd.DataFrame, service=None, **kwargs) -> pd.DataFrame:
"""Setup index for response from query.

This function formats the response from the NWIS web services, in
Expand Down Expand Up @@ -79,7 +79,7 @@ def format_response(df, service=None, **kwargs):
return df.sort_index()


def preformat_peaks_response(df):
def preformat_peaks_response(df: pd.DataFrame):
"""Datetime formatting for the 'peaks' service response.

Function to format the datetime column of the 'peaks' service response.
Expand Down