Created
May 31, 2013 03:54
-
-
Save gabraganca/5682858 to your computer and use it in GitHub Desktop.
This file contains 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
import numpy as np | |
def create_list(list1, list2): | |
""" | |
list1 : N-dimensional list | |
list2 : 1-dimensional list | |
""" | |
return np.array([np.append(np.array(i), j) for i in list1 for j in list2]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment