Created
February 23, 2016 12:54
-
-
Save clarkli86/c42ff1f7fc6e188f414f to your computer and use it in GitHub Desktop.
Merge np.ndarray with the same number of rows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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