Updating Old Julia Code - Cant get past ArgumentError: Invalid Index

Welcome!

I think you may be wrong about the location of the error. The error that you showed in your first post refers to the call to CSV.File within create_lineups, which doesn’t seem to be the part of the code that you posted. I also looked at the original code in the repo, but it looks like you must have changed that part of the code as well.

I’m assuming that you found that the readtable function was removed from DataFrames a while ago and probably replaced it with a call to some function in CSV.jl, but I’m really just guessing because I can’t see what you’ve done.

What I would suggest is:

  • Reduce the problem to the minimal function which fails. That means figuring out which function is failing and what its expected inputs are.
  • Post that minimal failing example here, using the ``` backticks to format it (rather than pasting a screenshot). There’s lots of good info about making it easier to help you here: Please read: make it easier to help you
1 Like