Python Numpy Index Array Function In React