回答編集履歴
1
test
CHANGED
@@ -16,3 +16,10 @@
|
|
16
16
|
由美,1,1,1,1
|
17
17
|
拓也,0,1,1,1
|
18
18
|
```
|
19
|
+
|
20
|
+
もしくは、
|
21
|
+
```python
|
22
|
+
df = pd.read_csv('TEST.CSV', encoding="cp932", dtype='object', index_col=['名前'])
|
23
|
+
df = df.apply(pd.notna).astype(int)
|
24
|
+
```
|
25
|
+
|