I have a tuple that contains a numpy array that I want to convert into just the numpy array. The current tuple is:
Tup = (array([ 7500, 10476, 10643, 13683, 14761]),)
i've tried using the np.asarray module but when I do this it just adds an array around the tuple instead of removing it as seen below:
Tup= np.asarray(Tup)
print(Tup)
Output: array([[ 7500, 10476, 10643, 13683, 14761]])
How would I convert Tup into just an array. My ideal output would be:
[7500, 10476, 10643, 13683, 14761]
Tup[0]Tup[0]? Or do you actually want a list?