Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
npArrData = np.array([1, 2, 3])
listData = npArrData.tolist()
print("npArrData: ", type(npArrData), ": ", npArrData)
print("listData:", type(listData), ": ", listData)
# Output
# npArrData: <class 'numpy.ndarray'> : [1 2 3]
# listData: <class 'list'> : [1, 2, 3]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment