Answers for "tuple of tuples to np array"

1

np to tuple

tuple(arr)
Posted by: Guest on March-10-2021
0

numpy array into tuple

def totuple(a):
    try:
        return tuple(totuple(i) for i in a)
    except TypeError:
        return a
Posted by: Guest on August-06-2021

Code answers related to "tuple of tuples to np array"

Python Answers by Framework

Browse Popular Code Answers by Language