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'
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