-
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
Warning: Pandas Concat Empty DataFrame #32
Comments
Hello, Could you provide a minimal reproducible example of the query causing the error? |
I've been enjoying using your wrapper for blpapi. Recently, I encountered the same Environment
Reproducible Examplefrom blp import blp
bquery = blp.BlpQuery().start()
bquery.bdh(
["CZTA3MAY Index", "GTCZK2Y Govt"],
["PX_LAST"],
start_date="20240208",
end_date="20240208"
) |
Happy to take a PR on this. Can someone post what the actual response from @mmtpo looks like? Ideally raw blpapi output and the parsed dataframe. Don't currently have access to a bbg connection. |
Sure! The problem should be as mentioned by @simg, i.e. the first response returns empty data, hence resulting in an DataFrame with no rows causing the warning. See partial dumps of the responses for both securities and the given date as above:
|
Hello,
We are encountering this warning with BDH when some of the queried tickers have no information, how can we suppress it.
FutureWarning: The behavior of DataFrame concatenation with empty or all-NA entries is deprecated. In a future version, this will no longer exclude empty or all-NA columns when determining the result dtypes. To retain the old behavior, exclude the relevant entries before the concat operation.
Regards,
The text was updated successfully, but these errors were encountered: