bls icon indicating copy to clipboard operation
bls copied to clipboard

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

Open Ancipes opened this issue 5 years ago • 2 comments

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?

Ancipes avatar Mar 29 '19 13:03 Ancipes

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.

OliverSherouse avatar Mar 29 '19 14:03 OliverSherouse

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

JeremyPadgett avatar Mar 03 '20 16:03 JeremyPadgett