Skip to content

Commit

Permalink
remove redundant code that returned an inproperly formatted dataframe
Browse files Browse the repository at this point in the history
  • Loading branch information
aaraney committed Sep 3, 2021
1 parent 7985320 commit de35100
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions python/nwis_client/src/hydrotools/nwis_client/iv.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit de35100

Please sign in to comment.