how to get access of all ESG score every year

Hi, I have some problem when I used the follwoing code:

df, err = ek.get_data("SCREEN(U(IN(Equity(active,public,primary))/*UNV:Public*/), IN(TR.RegCountryCode,""US""), TR.TRESGScore(Period=FY0)>0, CURN=USD)",

["TR.CUSIP",'TR.CompanyName',"TR.TRESGScore.Date","TR.TRESGScore","TR.EnvironmentPillarScore",'TR.SocialPillarScore','TR.GovernancePillarScore'],

parameters={'SDate':'0', 'EDate':'-19','Period':'FY0','Frq':'FY'})

It will return a "nontype". It is wired because it works well three month ago.

Best Answer

  • Jirapongse
    Jirapongse admin
    Answer ✓

    @ww678

    Thank you for reaching out to us.

    I can run the code properly and get the result, as shown below.

    1689043939371.png

    Please share the error or output that you received.