Results for the same data item come out differently depending on the time range selected.

<br>
I would like to retrieve data for Instrument: 1730.T - Profit and Loss, but it appears that the same
data comes out differently, depending on the time period chosen.
I’ve tried below 4 conditions for the same data item;
1) When retrieving the data shortening time range (Attached
as Reuter_question1.jpg)
Research and development:
no data
Unusual Expense (income): 545000
「Reuter_question1.csv」
import eikon as ek
from datetime import datetime as dt
import pandas as pd
ek.set_app_id('8A74283D221E74D48347816')
fields = ['TR.Revenue.date', 'TR.Revenue', 'TR.GrossProfit']
param = {'SDate': 0, 'EDate': -3, 'FRQ': 'FS'}
if __name__ == '__main__':
start_date = str(20170701)
end_date = str(20171005)
chunk = ['1730.T']
fields = ['TR.ISOriginalAnnouncementDate', 'TR.ISPeriodEndDate', 'TR.TotalOperatingExpense', 'TR.CostofRevenueTotal', 'TR.SgaExpenseTotal', 'TR.ResearchAndDevelopment', 'TR.UnusualExpense']
data, error = ek.get_data(chunk, fields, {"SDate": start_date, "EDate": end_date, "FRQ": "FQ", "Period": "FQ0", "ReportingState": "Orig"})
data.to_csv(path + "Reuter_question1.csv", index=None)
print(data)
2) When retrieving the data lengthening time range (Reuter_question2.jpg)
Research and development: no data
Unusual Expense (income): no data
「Reuter_question2.csv」
import eikon as ek
from datetime import datetime as dt
import pandas as pd
ek.set_app_id('8A74283D221E74D48347816')
fields = ['TR.Revenue.date', 'TR.Revenue', 'TR.GrossProfit']
param = {'SDate': 0, 'EDate': -3, 'FRQ': 'FS'}
if __name__ == '__main__':
start_date = str(20150101)
end_date = str(20171005)
chunk = ['1730.T']
fields = ['TR.ISOriginalAnnouncementDate', 'TR.ISPeriodEndDate', 'TR.TotalOperatingExpense', 'TR.CostofRevenueTotal', 'TR.SgaExpenseTotal', 'TR.ResearchAndDevelopment', 'TR.UnusualExpense']
data, error = ek.get_data(chunk, fields, {"SDate": start_date, "EDate": end_date, "FRQ": "FQ", "Period": "FQ0", "ReportingState": "Orig"})
data.to_csv(path + "Reuter_question2.csv", index=None)
print(data)
3) When retrieving quarterly data for 30 periods (Reuter_question3.jpg)
Research and development: 22313000.0
Unusual Expense (income): 545000.0
「Reuter_question3.csv」
import eikon as ek
from datetime import datetime as dt
import pandas as pd
ek.set_app_id('8A74283D221E74D48347816')
fields = ['TR.Revenue.date', 'TR.Revenue', 'TR.GrossProfit']
param = {'SDate': 0, 'EDate': -3, 'FRQ': 'FS'}
if __name__ == '__main__':
chunk = ['1730.T']
fields = ['TR.ISOriginalAnnouncementDate', 'TR.ISPeriodEndDate', 'TR.TotalOperatingExpense', 'TR.CostofRevenueTotal', 'TR.SgaExpenseTotal', 'TR.ResearchAndDevelopment', 'TR.UnusualExpense']
data, error = ek.get_data(chunk, fields, {"SDate": 0, "EDate": -30, "FRQ": "FQ", "Period": "FQ0", "ReportingState": "Orig"})
data.to_csv(path + "Reuter_question3.csv", index=None)
print(data)
4) When retrieving quarterly data for 10 periods (Reuter_question4.jpgreuter-question2.jpg)
Research and development: no data
Unusual Expense (income): 545000
「Reuter_question4.csv」
import eikon as ek
from datetime import datetime as dt
import pandas as pd
ek.set_app_id('8A74283D221E74D48347816')
fields = ['TR.Revenue.date', 'TR.Revenue', 'TR.GrossProfit']
param = {'SDate': 0, 'EDate': -3, 'FRQ': 'FS'}
if __name__ == '__main__':
chunk = ['1730.T']
fields = ['TR.ISOriginalAnnouncementDate', 'TR.ISPeriodEndDate', 'TR.TotalOperatingExpense', 'TR.CostofRevenueTotal', 'TR.SgaExpenseTotal', 'TR.ResearchAndDevelopment', 'TR.UnusualExpense']
data, error = ek.get_data(chunk, fields, {"SDate": 0, "EDate": -10, "FRQ": "FQ", "Period": "FQ0", "ReportingState": "Orig"})
data.to_csv(path + "Reuter_question4.csv", index=None)
print(data)
I think the data below should be right, but how should I fix the
program so that no matter what time range I chose I can get the right data?
Research and development: no data
Unusual Expense (income): 545000 (shown as 0.5)
Best Answer
-
This is the effect of the issue that's been previously raised and acknowledged on numerous threads on this forum. Null values or data gaps are pushed down to the bottom of the column, thus screwing up the alignment of data between rows and columns. See for example https://community.developers.refinitiv.com/questions/19014/period-end-date-not-pulling-through-properly.html
The issue is still being worked on.0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 685 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 252 ETA
- 556 WebSocket API
- 38 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 652 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 228 TRKD
- 917 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛