Skip to content

Instantly share code, notes, and snippets.

@stephengruppetta
Created January 6, 2024 12:09
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/9ad7e381b2cf5b455917b2999c50487e to your computer and use it in GitHub Desktop.
Save stephengruppetta/9ad7e381b2cf5b455917b2999c50487e to your computer and use it in GitHub Desktop.
some_numbers_np = np.array([1, 2, 3, 5, 8, 13])
some_numbers_np[[True, False, False, True, False, True]]
# array([ 1, 5, 13])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment