numpy_exercises
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
numpy_exercises [2020/10/17 19:26] – prasanthi | numpy_exercises [2020/10/25 04:39] (current) – prasanthi | ||
---|---|---|---|
Line 2: | Line 2: | ||
Q. Given two one dimensional arrays, how to combine them into a 2d numpy array? | Q. Given two one dimensional arrays, how to combine them into a 2d numpy array? | ||
- | A. use np.column_stack((c1, | + | A. use < |
< | < | ||
Line 33: | Line 33: | ||
2 | 2 | ||
</ | </ | ||
- | You can also get the same result by doing np.vstack((c1, | + | You can also get the same result by doing < |
< | < | ||
Line 51: | Line 51: | ||
True | True | ||
</ | </ | ||
+ | |||
+ | Ref:- | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | |||
+ | tags | combine two numpy arrays into 2d array | ||
numpy_exercises.1602962766.txt.gz · Last modified: 2020/10/17 19:26 by prasanthi