質問編集履歴
1
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -32,11 +32,11 @@
|
|
32
32
|
df= df.dropna()
|
33
33
|
|
34
34
|
#文字列置換
|
35
|
-
replace = {
|
35
|
+
name_replace = {
|
36
36
|
"会社":"食費",
|
37
37
|
"デパート":"オフィス"
|
38
38
|
}
|
39
|
-
df['名称'] = df["名称"].replace(
|
39
|
+
df['名称'] = df["名称"].replace(name_replace,regex=True)
|
40
40
|
df.to_csv('output.csv',index=None,encoding="cp932")
|
41
41
|
```
|
42
42
|
|