backtesting.py icon indicating copy to clipboard operation
backtesting.py copied to clipboard

infer_datetime_format will be deprecated

Open AndrGutierrez opened this issue 2 years ago • 3 comments

infer_datetime_format will be deprecated, so I am getting this error, it's a silly issue but I am posting it just in case

Expected Behavior

No warnings at all

Actual Behavior

/home/andres/backtest/env/lib/python3.10/site-packages/backtesting/test/init.py:8: FutureWarning: The argument 'infer_datetime_format' is deprecated and will be removed in a future version. A strict version of it is now the default, see https://pandas.pydata.org/pdeps/0004-consistent-to-datetime-parsing.html. You can safely remove this argument. return pd.read_csv(join(dirname(file), filename), /home/andres/backtest/env/lib/python3.10/site-packages/backtesting/test/init.py:8: FutureWarning: The argument 'infer_datetime_format' is deprecated and will be removed in a future version. A strict version of it is now the default, see https://pandas.pydata.org/pdeps/0004-consistent-to-datetime-parsing.html. You can safely remove this argument. return pd.read_csv(join(dirname(file), filename),

Steps to Reproduce

just import goog.

from backtesting.test import GOOG

AndrGutierrez avatar Apr 12 '23 16:04 AndrGutierrez

up

diegopowereng avatar Apr 28 '23 07:04 diegopowereng

up

liebig avatar May 22 '23 18:05 liebig

up

tonypottera24 avatar Dec 22 '23 02:12 tonypottera24