回答編集履歴
1
追記
answer
CHANGED
@@ -14,4 +14,13 @@
|
|
14
14
|
array([1, 1, 2, 2, 3, 3, 4, 4])
|
15
15
|
```
|
16
16
|
|
17
|
-
[numpy.reshape — NumPy v1.16 Manual](https://docs.scipy.org/doc/numpy/reference/generated/numpy.reshape.html#numpy.reshape)
|
17
|
+
[numpy.reshape — NumPy v1.16 Manual](https://docs.scipy.org/doc/numpy/reference/generated/numpy.reshape.html#numpy.reshape)
|
18
|
+
|
19
|
+
---
|
20
|
+
|
21
|
+
tiitoiさんの回答を見て`ravel`メソッドの存在を思い出したので。
|
22
|
+
|
23
|
+
```python
|
24
|
+
>>> a.ravel(order="F")
|
25
|
+
array([1, 1, 2, 2, 3, 3, 4, 4])
|
26
|
+
```
|