回答編集履歴
1
Update
test
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
df = df[~df[0].str.match(r'.*(MAC Address|VLAN Pool Name)')]
|
24
24
|
|
25
|
-
df
|
25
|
+
df = (
|
26
26
|
|
27
27
|
df.groupby(df[0].str.match(rf'^({weekday}) ').cumsum())
|
28
28
|
|
@@ -32,17 +32,17 @@
|
|
32
32
|
|
33
33
|
.reset_index(drop=True))
|
34
34
|
|
35
|
-
df
|
35
|
+
df.columns = header
|
36
36
|
|
37
37
|
|
38
38
|
|
39
|
-
df
|
39
|
+
df.to_csv('sample.csv', index=False)
|
40
40
|
|
41
41
|
```
|
42
42
|
|
43
43
|
|
44
44
|
|
45
|
-
**
|
45
|
+
**sample.csv**
|
46
46
|
|
47
47
|
```csv
|
48
48
|
|