Skip to content

Instantly share code, notes, and snippets.

@werterzz
Created March 12, 2022 08:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save werterzz/99437b48bca8ed64309144fec09b8e02 to your computer and use it in GitHub Desktop.
Save werterzz/99437b48bca8ed64309144fec09b8e02 to your computer and use it in GitHub Desktop.
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