Skip to content

Instantly share code, notes, and snippets.

@clarkli86
Created February 23, 2016 12:54
Show Gist options
  • Select an option

  • Save clarkli86/c42ff1f7fc6e188f414f to your computer and use it in GitHub Desktop.

Select an option

Save clarkli86/c42ff1f7fc6e188f414f to your computer and use it in GitHub Desktop.
Merge np.ndarray with the same number of rows
a = np.ndarray((4, 1))
b = np.ndarray((4, 2))
c = [np.array(list(itertools.chain.from_iterable(it))) for it in zip(a, b)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment