回答編集履歴

1

追記

2019/08/25 02:18

投稿

退会済みユーザー
test CHANGED
@@ -1,8 +1,12 @@
1
1
  ```python
2
2
 
3
+ #nanがある行取得
4
+
3
- null_place = df.loc[:, df.isnull().any()]
5
+ null_place = df.loc[:, df.isnull().any()] 
4
6
 
5
7
 
8
+
9
+ #2回目以上なのか判定
6
10
 
7
11
  if any(null_place.groupby(list(null_place.columns)).cumcount() >= 1)::
8
12