From de351009faf4fa683d681f720d45711635c2f12e Mon Sep 17 00:00:00 2001 From: Austin Raney Date: Thu, 2 Sep 2021 20:55:39 -0400 Subject: [PATCH] remove redundant code that returned an inproperly formatted dataframe --- python/nwis_client/src/hydrotools/nwis_client/iv.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/python/nwis_client/src/hydrotools/nwis_client/iv.py b/python/nwis_client/src/hydrotools/nwis_client/iv.py index b45f30bc..671b5c53 100644 --- a/python/nwis_client/src/hydrotools/nwis_client/iv.py +++ b/python/nwis_client/src/hydrotools/nwis_client/iv.py @@ -249,12 +249,6 @@ def list_to_df_helper(item: dict): list_of_frames = list(map(list_to_df_helper, raw_data)) - # Empty list. No data was returned in the request - if not list_of_frames: - warning_message = "No data was returned by the request." - warnings.warn(warning_message) - return pd.DataFrame(None) - # Concatenate list in single pd.DataFrame dfs = pd.concat(list_of_frames, ignore_index=True)