回答編集履歴
1
追記
answer
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
```python
|
2
|
+
#nanがある行取得
|
2
|
-
null_place = df.loc[:, df.isnull().any()]
|
3
|
+
null_place = df.loc[:, df.isnull().any()]
|
3
4
|
|
5
|
+
#2回目以上なのか判定
|
4
6
|
if any(null_place.groupby(list(null_place.columns)).cumcount() >= 1)::
|
5
7
|
pass
|
6
8
|
else:
|