TypeError: only integer scalar arrays can be converted to a scalar index

TypeError: only integer scalar arrays can be converted to a scalar index

More to explore

Based on this image's title: “TypeError: only integer scalar arrays can be converted to a scalar index