Let's say that I already have a list that I created and assigned to a variable.
example = [1, 2, 3, 4]
Then later on in my code I want to convert this to an array. Which of these is better practice?
example = np.array(example)
#or
example = np.asarray(example)
Or is there another way that's even better?