-
Notifications
You must be signed in to change notification settings - Fork 25
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
blp.bds
wrongly parses the field ID_EXCH_SYMBOL
as a sequence
#42
Comments
I was bumping into the same issue recently for a research project. raise ValueError(f"responses contain different fields, {field} and {keys[0]}")
field = keys[0]
data = response["data"][field]
try:
rows.extend(data) I have experimented with switching the |
Hmm, I seem to recall this being something you would want to call with What would be the impact of that change on this call |
Looking in more detail I think this is probably more a case of the error not appropriately catching this because a string is an iterable, i.e.
|
I think in this case you should just be using |
Indeed bdp seems to work accordingly for the current usecase. |
Problem description
The value of the field
ID_EXCH_SYMBOL
is"ES"
, but it gets parsed as if it was sequence of distinct values instead:["E", "S"]
Code to reproduce
Expected Output
The text was updated successfully, but these errors were encountered: