Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] get_stats function is not returning in the promised format #130

Open
tjann opened this issue Jul 10, 2020 · 0 comments
Open

[BUG] get_stats function is not returning in the promised format #130

tjann opened this issue Jul 10, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@tjann
Copy link
Contributor

tjann commented Jul 10, 2020

Describe the bug
The docstrings and docs indicate that get_stats returns

"A dictionary mapping each Place identified by the given dcid to its name and the time series associated with the StatisticalVariable identified by the given stats_var and filtered by obs_dates."

Which is not true.

To Reproduce
Steps to reproduce the behavior:

> dc.get_stats(['country/USA'], 'Count_Person')
 {'country/USA': {'data': {'2019': 328239523},
  'is_dc_aggregate': True,
  'place_dcid': 'country/USA',
  'place_name': 'United States'}}

Expected behavior

> dc.get_stats(['country/USA'], 'Count_Person')
 {'country/USA': {'data': {'2019': 328239523},
  'place_name': 'United States'}}

OR updated docstring.

Screenshots

Additional context

@tjann tjann added the bug Something isn't working label Jul 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant