Freqtrade: UserWarning: Boolean Series key will be reindexed to match DataFrame index.

Created on 22 Jan 2020  路  3Comments  路  Source: freqtrade/freqtrade

Step 1: Have you search for this issue before posting it?

Yes

Step 2: Describe your environment

  • Operating system: MacOS
  • Python Version: Python 3.7.5 (python -V)
  • CCXT version: 1.21.76 (pip freeze | grep ccxt)
  • Branch: Develop
  • Last Commit ID: 66415d48d4d9d42aaeec6beb1b8fc58dd58cf022 (git log --format="%H" -n 1)

Step 3: Describe the problem:

When running the code:

freqtrade backtesting --strategy Low_BB -i 1h

It prints out the report just fine except there's an error interrupting these lines:

========================================================= SELL REASON STATS ========================================================= /Users/yazeed/Sites/freqtrade/freqtrade/optimize/optimize_reports.py:73: UserWarning: Boolean Series key will be reindexed to match DataFrame index. loss = len(result[results['profit_abs'] < 0]) | Sell Reason | Count | Profit | Loss | Profit % | |:-------------------|--------:|---------:|-------:|-----------:| | trailing_stop_loss | 580 | 350 | 230 | 1.22 | | stop_loss | 151 | 0 | 151 | -1.7 |

The error:

/Users/yazeed/Sites/freqtrade/freqtrade/optimize/optimize_reports.py:73: UserWarning: Boolean Series key will be reindexed to match DataFrame index.

Bug

Most helpful comment

@yazeed
The fix just merged into current develop branch, pls verify the solution.

Just figured, I forgot to reply this one. Fix, verified. :)

All 3 comments

It's just a warning but should not be there nonetheless - and it's caused by a typo (will be fixed in #2790).

@yazeed
The fix just merged into current develop branch, pls verify the solution.

@yazeed
The fix just merged into current develop branch, pls verify the solution.

Just figured, I forgot to reply this one. Fix, verified. :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

macd2 picture macd2  路  4Comments

psionyx2311 picture psionyx2311  路  3Comments

Dante2333 picture Dante2333  路  4Comments

sgarcia159 picture sgarcia159  路  4Comments

issamBD picture issamBD  路  4Comments