Skip to content

Instantly share code, notes, and snippets.

@stephengruppetta
Created January 6, 2024 12:07
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 stephengruppetta/9b5e70c135eb7d2ae7186aff179833b3 to your computer and use it in GitHub Desktop.
Save stephengruppetta/9b5e70c135eb7d2ae7186aff179833b3 to your computer and use it in GitHub Desktop.
some_weird_list = [1, 2.2, True]
some_weird_ndarray = np.array(some_weird_list)
some_weird_ndarray
# array([1. , 2.2, 1. ])
# And let's check the 'dtype'…
some_weird_ndarray.dtype
# dtype('float64')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment