typeerror: only integer scalar arrays can be converted to a scalar index
Python numpy throws the typeerror: only integer scalar arrays can be converted to a scalar index, when an ordinary list is indexed with scalar index. Generally, its possible with numpy…