Jul-08-2022, 08:40 PM
It was in the error message:
Error:IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices
Lots of things can have [integer] or slices, but not many things that aren't numpy will accept a numpy.newaxis as an argument. Even without that I don't know many things that accept "[...]".