Emissions by NAICsCode and Period
Is it possible to pull and group the global values of TR.AnalyticEstimatedCO2Total and TR.Revenue (as USD or GBP) into groups of TR.NAICSSector and by Year, or at least show which year the data is coming from?
ek.get_data seems to only be able to pull data by instrument, and am having some difficulty showing year and currency information as well.
Best Answer
-
Thanks for reaching out to us.
You can get a date from the Date property, such as TR.Revenue.Date and TR.AnalyticEstimatedCO2Total.Date and you can also specify the currency in the TR.Revenue field, such as TR.Revenue(Curn=EUR).
The code looks like this:
df,err = ek.get_data(['0#.NDX'],
['TR.Revenue.Date',
'TR.Revenue(Curn=EUR)',
'TR.Revenue(Curn=USD)',
'TR.NAICSSector',
'TR.AnalyticEstimatedCO2Total',
'TR.AnalyticEstimatedCO2Total.Date'])
dfThe output is:
After that, you can use dataframe methods to manipuate the data.
I hope that this information is of help.
1
Answers
-
For the availaibility of the content and rate conversion, please contact the Eikon support team direclty via MyRefinitiv. The get_data method can retrieve the same data as the =TR function in Eikon Excel.
I ran the code and got the following output.
To get RICs, you can contact the content support team via MyRefinitiv or use the RIC Search tool.
1 -
Thank you for that information.
Can I ask some follow up queries?
- where can I get a full list of Chain RICs?
- is there a way to aggregate data across all instruments?
- I am not sure how to find the ".Date" or "Curn" (is this termed as Level 2 data?) within the Data Item Browser. Can you advise?
- If I want to get the Fiscal Date/Fiscal Year instead of the Date the data is reported (which is what TR.Revenue.Date returns) what is the "." Level 2 that I need to use?
- For Currency Conversions, what is the basis of the FX Rate?
Thank you again
0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛