Skip to content

Instantly share code, notes, and snippets.

@binshengliu
Created March 25, 2020 08:42
Show Gist options
  • Select an option

  • Save binshengliu/b6015463e99ce1608a285c15cfa13dcd to your computer and use it in GitHub Desktop.

Select an option

Save binshengliu/b6015463e99ce1608a285c15cfa13dcd to your computer and use it in GitHub Desktop.
All combinations of two ndarray
arr = np.array(np.meshgrid(arr0, arr1)).T.reshape(-1, 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment