Hi, since few weeks ( not sure but I think after upgrading some python libraries like pandas etc.) I have problems with getting data using refinitive API in Visual code studio.
for example I get empty df with this simple code:
import pandas as pd
import refinitiv.data as rd
rd.open_session()
rd.get_history(universe="LSEG.L")
and warning:
c:\Users\tpm20\AppData\Local\Programs\Python\Python310\lib\site-packages\refinitiv\data\_tools\_dataframe.py:188: FutureWarning: Downcasting object dtype arrays on .fillna, .ffill, .bfill is deprecated and will change in a future version. Call result.infer_objects(copy=False) instead. To opt-in to the future behavior, set `pd.set_option('future.no_silent_downcasting', True)` df.fillna(np.nan, inplace=True)
on the other hand code:
rd.get_history(universe="LSEG.L", fields='BID') is working very well as always
LSEG.LBIDDate
2024-03-2696662024-03-2795922024-03-2894902024-04-0294222024-04-039356
Any idea how can I fix it?