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

Error when trying to retrieve series that has only annual data. #21

Open
Ancipes opened this issue Mar 29, 2019 · 2 comments
Open

Error when trying to retrieve series that has only annual data. #21

Ancipes opened this issue Mar 29, 2019 · 2 comments

Comments

@Ancipes
Copy link

Ancipes commented Mar 29, 2019

I am trying to retrieve data for series id: ENU180003057111. Since this series just has the annual data the program shows there are no values for this series. The library works great for other series. Is there a way to fix this?

@OliverSherouse
Copy link
Owner

Thanks for the bug report. I'll explain what seems to be happening so that I remember later. This series is mislabeled in BLS as quarterly; when you do a simple request for the series, it says there's no data; the actual data only shows up when the request to BLS's api uses the annualaverages option. This library generally ignores that option because you can do the same thing with pandas's timeseries functionality without adding something to the series that isn't the same kind of number.

What will need to happen, apparently, is specifying annualaverages=True for all (?) requests and then using that value if its' the only one in the series and dropping otherwise. I'll see if I can get around to this this weekend.

@JeremyPadgett
Copy link

Is it possible to pull data for a specific country using the API?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants