Skip to content

Dataframe not returned from get_water_use() #46

Description

@putmanannie

Today I tried using the get_water_use() function

from dataretrieval import nwis

wudict = {'AZ':['Mohave', 'Graham', 'Cochise', 'Pinal', 'Gila', 
                'Maricopa', 'Yavapai'],
          'NM':['Catron', 'Grant'],
          'UT':['Washington']}

for state in wudict.keys():
    counties = wudict[state]    
    wu = nwis.get_water_use(years='ALL', state=state, counties=counties, 
                            categories='ALL')
    wu_df = wu[0]

and the return did not produce a dataframe, instead I got something that was coerced to a dataframe (wu_df) but is definitely not the return I was looking for (see image below for picture of what was returned).

image

What's going on here? I tried updating the package, but that didn't solve it.

thanks,
Annie

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions