質問編集履歴
2
エラーの出方が変わったので編集しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -54,9 +54,7 @@
|
|
54
54
|
|
55
55
|
|
56
56
|
|
57
|
-
そんな中次のエラーが発生しました。
|
57
|
+
そんな中次のエラーが発生しました。
|
58
|
-
|
59
|
-
|
60
58
|
|
61
59
|
### 発生している問題・エラーメッセージ
|
62
60
|
|
@@ -64,47 +62,7 @@
|
|
64
62
|
|
65
63
|
```
|
66
64
|
|
67
|
-
File "<ipython-input-10-a41d85d508f9>", line 1, in <module>
|
68
|
-
|
69
|
-
ON_I()
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
File "C:\Users\直柔.spyder-py3\ON_I.py", line 32, in ON_I
|
74
|
-
|
75
|
-
VI = pd.concat([VI, ONf_I], axis=1)
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
File "D:\Anaconda3\lib\site-packages\pandas\core\reshape\concat.py", line 287, in concat
|
80
|
-
|
81
|
-
return op.get_result()
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
File "D:\Anaconda3\lib\site-packages\pandas\core\reshape\concat.py", line 498, in get_result
|
86
|
-
|
87
|
-
indexers[ax] = obj_labels.reindex(new_labels)[1]
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
65
|
+
NotImplementedError: Can only union MultiIndex with MultiIndex or Index of tuples, try mi.to_flat_index().union(other) instead.
|
92
|
-
|
93
|
-
target = MultiIndex.from_tuples(target)
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
File "D:\Anaconda3\lib\site-packages\pandas\core\indexes\multi.py", line 501, in from_tuples
|
98
|
-
|
99
|
-
arrays = list(lib.tuples_to_object_array(tuples).T)
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
File "pandas\_libs\lib.pyx", line 2470, in pandas._libs.lib.tuples_to_object_array
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
TypeError: object of type 'int' has no len()
|
108
66
|
|
109
67
|
```
|
110
68
|
|
@@ -123,8 +81,6 @@
|
|
123
81
|
import glob
|
124
82
|
|
125
83
|
import os
|
126
|
-
|
127
|
-
#import matplotlib.pyplot as plt
|
128
84
|
|
129
85
|
|
130
86
|
|
1
誤字を修正しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -116,10 +116,6 @@
|
|
116
116
|
|
117
117
|
```python
|
118
118
|
|
119
|
-
ソースコード
|
120
|
-
|
121
|
-
```
|
122
|
-
|
123
119
|
import pandas as pd
|
124
120
|
|
125
121
|
from pandas import DataFrame
|
@@ -170,6 +166,10 @@
|
|
170
166
|
|
171
167
|
VI.to_csv(file_name)
|
172
168
|
|
169
|
+
```
|
170
|
+
|
171
|
+
|
172
|
+
|
173
173
|
### 試したこと
|
174
174
|
|
175
175
|
|