回答編集履歴
1
Update
test
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
```python
|
2
2
|
|
3
|
+
df[[f'{c}_割合' for c in df.columns]] = df / df.sum()
|
4
|
+
|
3
|
-
df[['A_割合', 'B_割合']] = df / df.sum()
|
5
|
+
#df[['A_割合', 'B_割合']] = df / df.sum()
|
4
6
|
|
5
7
|
|
6
8
|
|