pmorissette / ffn

ffn - a financial function library for Python
pmorissette.github.io/ffn
MIT License
2k stars 297 forks source link

in python 11,there are some warnings about ffn #217

Closed vagrant-psyche closed 9 months ago

vagrant-psyche commented 9 months ago

Describe the bug in python 11,there are some warnings about ffn

/root/miniconda3/envs/general/lib/python3.11/site-packages/ffn/core.py:1258: FutureWarning: Series.getitem treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use ser.iloc[pos] return daily_prices[-1] / monthly_prices[-2] - 1

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots image

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

timkpaine commented 9 months ago

https://github.com/pmorissette/ffn/pull/202