Screenshot showing the error: IndexError: only integers, slices (:
), ellipsis (...
), numpy.newaxis (None
) and integer or boolean arrays are valid indices
Asked
Active
Viewed 197 times
0

vimuth
- 5,064
- 33
- 79
- 116

Pankaj kanyal
- 1
- 1
-
Welcome to SO. Please provide a [minimum reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) which in your case is a code snippet not a screenshot. Moreover, it is supposed to be "minimal" in the sense that it is isolated not requiring datasets/dependencies not shared in the code snippet. – 7shoe Aug 04 '22 at 06:25
-
Please consult [this threat](https://stackoverflow.com/questions/34952651/only-integers-slices-ellipsis-numpy-newaxis-none-and-intege) and others on SO to see if the problem you encountered is unique. – 7shoe Aug 04 '22 at 06:27