-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
bugSomething isn't workingSomething isn't working
Description
- Datenguide Python version: 0.3.1
- Python version: all
- Operating System: all
Description
When creating a query object with the .region factor method and more than one region, the .results method does
not return data for all regions on its second call and subsequent calls. It seems to be the case the the .results calls past the first only return results for the last region.
What I Did
from datenguidepy import Query
q = Query.region(['11', '09'])
stat = q.add_field('BEVSTD')
stat.add_args({'year': 1995})
first_call = q.results()
second_call = q.results()
print(first_call.shape[0],first_call.name.unique()) # 2 results, containing 'Berlin' and 'Bayern'
print(second_call.shape[0],second_call.name.unique()) # 1 result, only containing 'Bayern'Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working