Future Depreciation pandas : FutureWarning when using get_timeseries with normalize=True
Hi team,
When using the method get_timeseries with normalize=True, a waning is raised with the following message :
FutureWarning: Could not cast to float64, falling back to object. This behavior is deprecated. In a future version, when a dtype is passed to 'DataFrame', either all columns will be cast to that dtype, or a TypeError will be raised.
df = pd.DataFrame(dict(Date=timestamp_column, Security=symbol_column,
Do you intend to fix this for the next release ?
To reproduce the error (eikon package version 1.1.14):
import eikon as ek
import datetime
date_format = "%Y%m%d"
start_date = datetime.datetime.strptime("20220413", date_format)
end_date = datetime.datetime.strptime("20220415", date_format)
ek.set_app_key(API_KEY)
ek.get_timeseries(["IBM"],
["OPEN", "CLOSE"],
start_date, end_date, raw_output= False, normalize= True)
Thank you
Best Answer
-
Regarding the migration from the Eikon Data API to the RD Lib, the following is the most recent statement from the RD Library team:
We have started promoting the new RD Library by exposing it more via CodeBook examples, GitHub examples and the Refinitiv Dev Community. After the official release (i.e. not Beta), we will continue to promote the RD Library.However, there is no deprecation date defined yet for the Eikon Data API. The Eikon Data API and the RDP library will continue to be supported and will be available in CodeBook and on PyPi for a while. We will continue to add new features regularly to the RD Library - which should encourage customers to migrate from the Eikon Data API. Once, a significant number of customers have migrated from EDAPI to the RD Lib and once we get enough feedback, we will define a deprecation date.
I hope that helps.
In terms of your original issue, we can report this to the Eikon Data API team.
0
Answers
-
Hi @guillaume.lefur ,
Please use the latest version of our Python Library, the Refinitiv Data Library (RD). This is up to date and allows you access to the 'get_data' function with similar arguments as the EDAPI one, allowing for minimal code change when updating library.
0 -
Hi,
Thanks for the quick response. But since your new package is tagged as a beta, we can't afford to use it.
But does it mean that you intend to abandon the eikon package ?
Thanks
0 -
hi @guillaume.lefur,
Would you mind letting us know which libraries you are using and their versions (maybe via pip freeze)?
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 中文论坛