lseg-data library prints Python warnings

igorg
igorg Advocate

When I do something that involves timestamps, like :

image.png

The last line prints this warning:

LSEG-data.venv\Lib\site-packages\lseg\data_tools_dataframe.py:177: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)

Is this something I can fix on my side or it should be done in that _dataframe.py?

Edit: Please move (if possible) the question to correct category.

Best Answer