We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8876e5c commit fdd75b8Copy full SHA for fdd75b8
1 file changed
IntroToPython/inst/doc/Exercise3.Rmd
@@ -99,7 +99,9 @@ arr_num_6x3 = arr_num.reshape(6,3)
99
100
```{python, echo=toMessage}
101
small_nums = arr_num_6x3[arr_num_6x3 < 10]
102
+small_nums
103
big_nums = arr_num_6x3[arr_num_6x3 > 9]
104
+big_nums
105
```
106
107
- Confirm the shape and dimensions of these arrays.
@@ -117,14 +119,16 @@ big_nums.ndim
117
119
118
120
121
small_nums_3x3 = small_nums.reshape(3,3)
122
+small_nums_3x3
123
big_nums_3x3 = big_nums.reshape(3,3)
-
124
+big_nums_3x3
125
126
127
- Concatenate these two arrays, joining them by columns.
128
129
130
arr_cat = np.concatenate((small_nums_3x3, big_nums_3x3), axis = 1)
131
+arr_cat
132
133
134
**Exercise 3** - **Custom Functions**
0 commit comments