Hi. I am getting the following warning and wanted to bring it your attention. Will this be fixed in future iterations of the API?
The pandas.np module is deprecated and will be removed from pandas in a future version. Import numpy directly instead
I have been advised by the developers that this issue will be resolved in future releases of the RDP library and the Eikon Data API.
Indeed the alpha version 1.1.3a0 of the Python Eikon Data API already has this issue fixed. I do not recommend using the Alpha version for any production implementations.
The RDP APIs refinitiv.dataplatform library - 1.0.0a0 (https://pypi.org/project/refinitiv-dataplatform/#description) currently have this warning. Is the RDP library on Github or similar? Happy to help.
You will have to be more specific - The error message in your original post is showing Eikon Data API, but the link is to RDP library. Both of which are different products.
Can you please show how I can replicate this error message - the code snippet etc. Also what is your Eikon and RDP library version number?
Thanks for the information, but I am still unable to reproduce your error. Can you point to the actual file within the package which imports numpy from pandas.
(rdp) C> pip list | grep -i refinitiv refinitiv-dataplatform 1.0.0a0 (rdp) C> python Python 3.6.2 |Continuum Analytics, Inc.| (default, Jul 20 2017, 12:30:02) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> >>> import refinitiv.dataplatform as rdp >>> >>> rdp.__version__ '1.0.0-alpha'
>>> import refinitiv.dataplatform <path>\lib\site-packages\refinitiv\dataplatform\pricing\pricing_.py:8: FutureWarning: The pandas.np module is deprecated and will be removed from pandas in a future version. Import numpy directly instead from pandas import np
>>> refinitiv.dataplatform.__version__ '1.0.0-alpha'
I am on pandas 1.0.3.
There are numerous functions still referencing pandas.np
So while the RDP library works (just shows warning) it is recommended to update and import numpy explicitly for future compatibility.