質問編集履歴

3

アドレス修正

2022/09/08 13:27

投稿

nsk
nsk

score6

test CHANGED
File without changes
test CHANGED
@@ -74,7 +74,7 @@
74
74
  File "C:\Users\untitled0.py", line 62, in <module>
75
75
  x = B_integral(df_n_1, HResolution)
76
76
 
77
- File "C:\Users\\untitled0.py", line 55, in B_integral
77
+ File "C:\Users\untitled0.py", line 55, in B_integral
78
78
  for i in df_n_1:
79
79
 
80
80
  TypeError: 'float' object is not iterable

2

失礼しました。エラー文章を記載、データをカンマ区切りで記載しました。

2022/09/08 13:26

投稿

nsk
nsk

score6

test CHANGED
File without changes
test CHANGED
@@ -68,11 +68,19 @@
68
68
 
69
69
 
70
70
  ### エラー
71
+ runcell(0, 'C:/Users/untitled0.py')
72
+ Traceback (most recent call last):
73
+
74
+ File "C:\Users\untitled0.py", line 62, in <module>
75
+ x = B_integral(df_n_1, HResolution)
76
+
77
+ File "C:\Users\\untitled0.py", line 55, in B_integral
78
+ for i in df_n_1:
79
+
71
80
  TypeError: 'float' object is not iterable
72
- と表記されます。
81
+
73
82
  インターネットで検索しつつ対策しようとしましたが、
74
83
  手詰まりとなり、ご教授いただければと思います。
75
-
76
84
 
77
85
 
78
86
  ### 補足情報(FW/ツールのバージョンなど)
@@ -82,29 +90,43 @@
82
90
  CSVファイルの中身は、以下のようになっており、(ここには書ききれませんので省略しています)データサイズが1001000です。
83
91
 
84
92
 
85
- Model Xviewer
93
+ Model,Xviewer,,,,,
86
- BlockNumber 1
94
+ BlockNumber,1,,,,,
87
- TraceName CH1 CH2 CH3 CH5 CH6 CH7
95
+ TraceName,CH1,CH2,CH3,CH5,CH6,CH7
88
- BlockSize 1001000 1001000 1001000 1001000 1001000 1001000
96
+ BlockSize,1001000,1001000,1001000,1001000,1001000,1001000
89
- Date 2022/9/6 2022/9/6 2022/9/6 2022/9/6 2022/9/6 2022/9/6
97
+ Date,2022/9/6,2022/9/6,2022/9/6,2022/9/6,2022/9/6,2022/9/6
90
- Time 06:09.3 06:09.3 06:09.3 06:09.3 06:09.3 06:09.3
98
+ Time,06:09.3,06:09.3,06:09.3,06:09.3,06:09.3,06:09.3
91
- VUnit A A A V V V
99
+ VUnit,A,A,A,V,V,V
92
- HResolution 1.00E-08 1.00E-08 1.00E-08 1.00E-08 1.00E-08 1.00E-08
100
+ HResolution,1.00E-08,1.00E-08,1.00E-08,1.00E-08,1.00E-08,1.00E-08
93
- HOffset 0.00E+00 0.00E+00 0.00E+00 0.00E+00 0.00E+00 0.00E+00
101
+ HOffset,0.00E+00,0.00E+00,0.00E+00,0.00E+00,0.00E+00,0.00E+00
94
- HUnit s s s s s s
102
+ HUnit,s,s,s,s,s,s
95
- 0.2008333 4.483333 -3.735833 -8.841666 -8.74 -8.99
103
+ ,0.2008333,4.483333,-3.735833,-8.841666,-8.74,-8.99
96
- 0.2008333 4.483333 -3.735833 -8.841666 -8.740833 -8.990833
104
+ ,0.2008333,4.483333,-3.735833,-8.841666,-8.740833,-8.990833
97
- 0.2008333 4.483333 -3.736667 -8.8425 -8.740833 -8.990833
105
+ ,0.2008333,4.483333,-3.736667,-8.8425,-8.740833,-8.990833
98
- 0.2016667 4.483333 -3.736667 -8.8425 -8.740833 -8.990833
106
+ ,0.2016667,4.483333,-3.736667,-8.8425,-8.740833,-8.990833
99
- 0.2016667 4.483333 -3.736667 -8.8425 -8.740833 -8.990833
107
+ ,0.2016667,4.483333,-3.736667,-8.8425,-8.740833,-8.990833
100
- 0.2016667 4.483333 -3.736667 -8.8425 -8.740833 -8.990833
108
+ ,0.2016667,4.483333,-3.736667,-8.8425,-8.740833,-8.990833
101
- 0.2025 4.4825 -3.7375 -8.8425 -8.740833 -8.990833
109
+ ,0.2025,4.4825,-3.7375,-8.8425,-8.740833,-8.990833
102
- 0.2025 4.4825 -3.7375 -8.8425 -8.741667 -8.991667
110
+ ,0.2025,4.4825,-3.7375,-8.8425,-8.741667,-8.991667
103
- 0.2025 4.4825 -3.7375 -8.843333 -8.741667 -8.991667
111
+ ,0.2025,4.4825,-3.7375,-8.843333,-8.741667,-8.991667
104
- 0.2033333 4.4825 -3.7375 -8.843333 -8.741667 -8.991667
112
+ ,0.2033333,4.4825,-3.7375,-8.843333,-8.741667,-8.991667
105
- 0.2033333 4.4825 -3.738333 -8.843333 -8.741667 -8.991667
113
+ ,0.2033333,4.4825,-3.738333,-8.843333,-8.741667,-8.991667
106
- 0.2033333 4.4825 -3.738333 -8.843333 -8.741667 -8.991667
114
+ ,0.2033333,4.4825,-3.738333,-8.843333,-8.741667,-8.991667
107
- 0.2041667 4.4825 -3.738333 -8.843333 -8.741667 -8.991667
115
+ ,0.2041667,4.4825,-3.738333,-8.843333,-8.741667,-8.991667
108
- 0.2041667 4.4825 -3.738333 -8.843333 -8.7425 -8.9925
116
+ ,0.2041667,4.4825,-3.738333,-8.843333,-8.7425,-8.9925
109
- 0.2041667 4.4825 -3.738333 -8.844167 -8.7425 -8.9925
117
+ ,0.2041667,4.4825,-3.738333,-8.844167,-8.7425,-8.9925
118
+ ,0.205,4.4825,-3.739167,-8.844167,-8.7425,-8.9925
119
+ ,0.205,4.481667,-3.739167,-8.844167,-8.7425,-8.9925
120
+ ,0.205,4.481667,-3.739167,-8.844167,-8.7425,-8.9925
121
+ ,0.2058333,4.481667,-3.739167,-8.844167,-8.743333,-8.9925
122
+ ,0.2058333,4.481667,-3.74,-8.844167,-8.743333,-8.993333
123
+ ,0.2058333,4.481667,-3.74,-8.845,-8.743333,-8.993333
124
+ ,0.2066667,4.481667,-3.74,-8.845,-8.743333,-8.993333
125
+ ,0.2066667,4.481667,-3.74,-8.845,-8.743333,-8.993333
126
+ ,0.2066667,4.481667,-3.740833,-8.845,-8.743333,-8.993333
127
+ ,0.2075,4.481667,-3.740833,-8.845,-8.744166,-8.993333
128
+ ,0.2075,4.480834,-3.740833,-8.845,-8.744166,-8.994166
129
+ ,0.2075,4.480834,-3.740833,-8.845834,-8.744166,-8.994166
130
+ ,0.2083333,4.480834,-3.740833,-8.845834,-8.744166,-8.994166
131
+ ,0.2083333,4.480834,-3.741667,-8.845834,-8.744166,-8.994166
110
132
 

1

失礼しました。インデントを反映させました。よろしくお願い致します。

2022/09/08 11:49

投稿

nsk
nsk

score6

test CHANGED
File without changes
test CHANGED
@@ -4,7 +4,8 @@
4
4
  以下のソースを記述しました。
5
5
 
6
6
  ### 該当のソースコード
7
-
7
+ コード
8
+ ```
8
9
  import glob
9
10
  import pandas as pd
10
11
  import re