Hello,
I am looking for the code to extract via the code book all the permids of companies in refinitiv for which we have esg scores, the name of those companies, and their esg score. Could you please help me ?
Alex
Hi @alexis.garatti
Yes, we can help with technical issues. If you are having problems with the code in the article, I would suggest a good first step is to try the screener queries example bundled with RD Library.
The RD Library and this example should already be available in your Codebook, under Examples directory.
If you are still having issues, please attach the logs and explain which part is failing, which will help us debug it.
Hello @alexis.garatti
Which API/product are you using. If this is for Workspace desktop, you might be able to use the Screener API.
See some of the sample usage of Screener for ESG in this article.
If you are using the RDP product, then ESG data is available for bulk downloads which contain all the organizations and their PermIDs.
Hello Gurpreet, I use the codebook in workspace. I would want to extract all companies and their esg scores. Thanks a lot for your attention
The screener article linked previously would be a good starting point.
Hello Gurpreet, I don't manage to reproduce the code on my codebook, would it be possible for you to help me on this or not really?
Thanks a lot Gurpreet: i would like to do two things: first collect all permid for which we have ESG data and second give the names of those companies and their ESG data
@alexis.garatti
The code could be like this:
screener_exp = 'SCREEN(U(IN(Equity(active,public,primary))), TR.TRESGScore(Period=FY2002)>=0)' inst = ld.get_data(screener_exp,['TR.CommonName','TR.TRESGScore(Period=FY2002)','TR.OrganizationID']) inst
I am using the LSEG Data Library for Python in Codebook. You can refer to the Examples/01. Data Retrieval and Discovery/01.01. LSEG Data Library/Access__Get_Data.ipynb example in Codebook.