I am testing this sample code in order to get data, but the dataframe returned is empty My college is getting data with this same code, so Im assuming its something related to configuration
I reran the code today in order to generate the logs and now it is retrieving data. I haven't changed anything so I am unsure why it does work! I will close the post unless the issue re-appears thanks
@Carles_Ribas
Thank you for reaching out to us.
Please use the rebranded LSEG Data Library for Python instead. The examples are on GitHub.
I tested the following code and it can return data properly.
You may need to enable the debug log in the library to verify what the problem. To enable the debug log, please run the following code before calling the open_session method.
config = rd.get_config() config.set_param("logs.transports.file.enabled", True) config.set_param("logs.transports.file.name", "lseg-data-lib.log") config.set_param("logs.level", "debug") rd.open_session()
Then, the lseg-data-lib.log file will created. Please share this log file when the problem occurred.