Skip to content

.results method does not return all regionss on second call #109

Open
@ghost

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

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions