質問編集履歴

1

プログラムを一部修正しました。

2021/11/05 08:51

投稿

raspypy
raspypy

スコア247

test CHANGED
File without changes
test CHANGED
@@ -16,14 +16,6 @@
16
16
 
17
17
  def list():
18
18
 
19
- list = ["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P"]
20
-
21
- df = pd.read_csv("test.csv", names=['Device','Master','Current'])
22
-
23
- for row in df.iterrows():
24
-
25
- df['Device'] = list
26
-
27
19
  df.to_csv('test.csv', mode='w', index=False, header=None)
28
20
 
29
21
  print(open('test.csv').read())