質問するログイン新規登録

回答編集履歴

1

コードの変更

2020/04/23 06:18

投稿

heacet43
heacet43

スコア51

answer CHANGED
@@ -3,9 +3,7 @@
3
3
 
4
4
  よって置換(部分一致)するプログラムは以下になります。
5
5
  ```python
6
- df2 = pd.read_csv(LOAD_CSV_PATH, dtype="string")
7
6
  df2 = df2.replace('*', 'A', regex=True)
8
- print(df2)
9
7
  ```
10
8
 
11
9
  [基本的な正規表現一覧](https://murashun.jp/blog/20190215-01.html)
@@ -14,5 +12,5 @@
14
12
  ```python
15
13
  for column in df2.columns:
16
14
  df2[column] = df2[column].str.replace("*", "A")
17
- print(df2)
15
+ display(df2)
18
16
  ```