error when a race has a REMOVED horse

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Testify467
    Junior Member
    • Dec 2019
    • 5

    #1

    error when a race has a REMOVED horse

    I'm using the code provided in the 'betfair data science for python' section, and it returns the following error when there's a REMOVED horse in the race.

    Index Error: list index out of range

    this is the line that calls the function: runners_df = process_runner_books(market_book.runners)

    if all the horses are ACTIVE there is no problem, but any status with REMOVED causes the error.
  • LiamP
    Junior Member
    • Oct 2015
    • 284

    #2
    Probably the same reason detailed here:

    https://stackoverflow.com/questions/...airlightweight

    I don't recommend the way AUS hub uses bflw.

    Comment

    • Testify467
      Junior Member
      • Dec 2019
      • 5

      #3
      Originally posted by LiamP View Post
      Probably the same reason detailed here:

      https://stackoverflow.com/questions/...airlightweight

      I don't recommend the way AUS hub uses bflw.
      thanks, reading his post it says it fixed the issue, so I'm hopeful. That would be fantastic!

      Comment

      • bfexplorer
        Senior Member
        • Sep 2018
        • 212

        #4
        Originally posted by Testify467 View Post

        thanks, reading his post it says it fixed the issue, so I'm hopeful. That would be fantastic!
        You may find interesting my library for data scientists:

        http://bfexplorer.net/Articles/Content/505

        Comment

        Working...
        X