Comments (5)
Never mind. I tried it. It takes lists. Thank you very much for solving this.
from bls.
Thanks for your email, Scott, I can confirm this is a bug and will turn around a fix ASAP.
Details, for the record:
The help for the function bls.get_series() states that the first argument can be either a series id or a sequence of series ids. I have used the function successfully to return a single series but I get error messages for multiple series. I have tried list and tuple. For example:
bls.get_series('LAUCN010970000000003', firstyr, lastyr, key = myblskey) returns data.
bls.get_series('LAUCN010990000000003', firstyr, lastyr, key = myblskey) returns data.But the following result in key errors:
bls.get_series(['LAUCN010970000000003','LAUCN010990000000003'], firstyr, lastyr, key = myblskey)
bls.get_series(('LAUCN010970000000003','LAUCN010990000000003'), firstyr, lastyr, key = myblskey
from bls.
Passing a sequence now works with version 0.3, available on pypi.
from bls.
Should I pass a list or a tuple?
from bls.
For the record, either should work.
from bls.
Related Issues (15)
- bls.py not found HOT 3
- get_series not working HOT 3
- Error when trying to retrieve series that has only annual data. HOT 2
- Error with max number of series that can be retrieved. HOT 3
- Switch to Poetry for development
- Type Annotation
- get_json_series as top level function
- Annual averages HOT 3
- Add ability to ignore invalid ids
- Passing API Key HOT 3
- Downloading Industry Level QCEW Employment Data HOT 1
- Update BLS code HOT 1
- Requesting current-year releases in a time series HOT 1
- Handle Quarterly Data Properly HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bls.