np array to tuple

Solutions on MaxInterview for np array to tuple by the best coders in the world

showing results for - "np array to tuple"
Isabella
12 Aug 2020
1>>> arr = numpy.array(((2,2),(2,-2)))
2>>> tuple(map(tuple, arr))
3((2, 2), (2, -2))