Hi,
when I run this code line it returns a tuple (of tuples?) where I would have expected a data frame.
Is this to be expected?
const_data=ek.get_data(members,['TR.MarketCapLocalCurn','TR.GicsSector'])
Upgrade from Eikon -> Workspace. Learn about programming differences.
For a deeper look into our Eikon Data API, look into:
Overview | Quickstart | Documentation | Downloads | Tutorials | Articles
Hi,
when I run this code line it returns a tuple (of tuples?) where I would have expected a data frame.
Is this to be expected?
const_data=ek.get_data(members,['TR.MarketCapLocalCurn','TR.GicsSector'])
@mbp
Thank you for your participation in the forum. Are any of the replies below satisfactory in resolving your query? If yes please click the 'Accept' text next to the reply that best answers your question. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.
Thanks,
-AHS
Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.
Thanks,
AHS
Hi @mbp
Either single or multiple item, the return type is tuple.
If you want dataframe, you can follow the code nick suggested.
Hi @mbp,
The get_data() returns a tuple to capture the data and a list of error details, if any:
If you are strictly interest in the data, you simply need to construct your return value as:
thanks.
Hi again.
When there is one item in members it returns a dataframe, but when there are more than one it returns a tuple.
I don't think you've answered the question.
rgds