回答編集履歴
1
追加
test
CHANGED
@@ -18,6 +18,24 @@
|
|
18
18
|
|
19
19
|
[[0.12], [0.35], [0.43, 0.434, 0.432], [0.74, 0.62, 0.76], [0.87, 0.99]]
|
20
20
|
|
21
|
+
```
|
21
22
|
|
23
|
+
後ろにNaNを詰めた形のndarrayにするなら以下を追加すればできます。
|
24
|
+
|
25
|
+
```python
|
26
|
+
|
27
|
+
>>> import pandas as pd
|
28
|
+
|
29
|
+
>>> print(pd.DataFrame(list3).values)
|
30
|
+
|
31
|
+
[[0.12 nan nan]
|
32
|
+
|
33
|
+
[0.35 nan nan]
|
34
|
+
|
35
|
+
[0.43 0.434 0.432]
|
36
|
+
|
37
|
+
[0.74 0.62 0.76 ]
|
38
|
+
|
39
|
+
[0.87 0.99 nan]]
|
22
40
|
|
23
41
|
```
|