The file can be found here : https://github.com/LSEG-API-Samples/Article.EikonAPI.Python.GatheringAggregatedESGDataOnCompanies/blob/master/README.md The error I am getting is:
ESG UN SDG part 2_CB_007.ipynb
@FZ_9
Thank you for reaching out to us.
Those examples are outdated. We will review them.
For now, it looks like that the code doesn't work with the 0#.MIWO00000PUS RIC. You can try other RICs, such as 0#.SPX. However, the code uses the old versions of pandas, and numpy libraries. Therefore, it will not work with the latest pandas, and numpy libraries.
Typically, you can use the following code to retrieve data.
df = ld.get_data( universe = ["0#.SPX"], fields = [ 'TR.AnalyticEnvControv.date', 'TR.AnalyticEnvControv', 'TR.EnvMaterialsSourcing.date', 'TR.EnvMaterialsSourcing', 'TR.EnvSupplyChainMgt.date', 'TR.EnvSupplyChainMgt', 'TR.PolicySustainablePackaging.date', 'TR.PolicySustainablePackaging' 'TR.HeadquartersCountry', 'TR.TRBCEconomicSector'], parameters = { 'SDate': '0', 'EDate': '-19', 'Period': 'FY0', 'Frq': 'FY', }) df
I am use the LSEG Data Library for Python and the examples are available on GitHub.
Great thanks for your help! please do let me know when the github code is updated.