回答編集履歴
1
lambda式を変更
test
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
|
10
10
|
|
11
|
-
df = df.applymap(lambda x: "
|
11
|
+
df = df.applymap(lambda x: "X" if x % 2 else "O")
|
12
12
|
|
13
13
|
print(df)
|
14
14
|
|