質問編集履歴
3
awdaw
test
CHANGED
File without changes
|
test
CHANGED
@@ -5,6 +5,8 @@
|
|
5
5
|
どこを改善すればよいでしょうか。
|
6
6
|
|
7
7
|
|
8
|
+
|
9
|
+
```
|
8
10
|
|
9
11
|
-test
|
10
12
|
|
@@ -15,6 +17,8 @@
|
|
15
17
|
-python
|
16
18
|
|
17
19
|
-load_allcsv.py
|
20
|
+
|
21
|
+
```
|
18
22
|
|
19
23
|
|
20
24
|
|
2
追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
最初に空のdataframeであるdfを作ってそれにconcatで足したいのですが、なぜかファイルが存在しないといわれます。
|
1
|
+
最初に空のdataframeであるdfを作ってそれにひとつ上のフォルダのcsvファイルをconcatで足したいのですが、なぜかファイルが存在しないといわれます。
|
2
2
|
|
3
3
|
また、pd.concatの部分でもTypeError: first argument must be an iterable of pandas objects, you passed an object of type "DataFrame"というエラーが出ます。
|
4
4
|
|
1
追加情報
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,8 +1,20 @@
|
|
1
|
-
最初に空のdataframeであるdfを作って
|
1
|
+
最初に空のdataframeであるdfを作ってそれにconcatで足したいのですが、なぜかファイルが存在しないといわれます。
|
2
2
|
|
3
|
-
TypeError: first argument must be an iterable of pandas objects, you passed an object of type "DataFrame"
|
3
|
+
また、pd.concatの部分でもTypeError: first argument must be an iterable of pandas objects, you passed an object of type "DataFrame"というエラーが出ます。
|
4
4
|
|
5
|
-
どこを改善すればよいでしょうか
|
5
|
+
どこを改善すればよいでしょうか。
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
-test
|
10
|
+
|
11
|
+
-test1.csv
|
12
|
+
|
13
|
+
-test2.csv
|
14
|
+
|
15
|
+
-python
|
16
|
+
|
17
|
+
-load_allcsv.py
|
6
18
|
|
7
19
|
|
8
20
|
|
@@ -12,7 +24,7 @@
|
|
12
24
|
|
13
25
|
print(df)
|
14
26
|
|
15
|
-
allfile = os.listdir(".")
|
27
|
+
allfile = os.listdir("../test")
|
16
28
|
|
17
29
|
for csv in allfile:
|
18
30
|
|