質問編集履歴

1

期待結果を追加した

2019/03/27 05:07

投稿

Glassylip
Glassylip

スコア17

test CHANGED
File without changes
test CHANGED
@@ -22,9 +22,9 @@
22
22
 
23
23
  df=pd.read_csv()
24
24
 
25
- df[df<1]
25
+ result=df[df<1]
26
26
 
27
-
27
+ result
28
28
 
29
29
  **実行結果**
30
30
 
@@ -43,3 +43,15 @@
43
43
 
44
44
 
45
45
  条件に一致しないセルもNanの形で出てきました。
46
+
47
+
48
+
49
+ リストでNaN以外の値を保存したいです。
50
+
51
+ list=[]
52
+
53
+ if result.isnull()==False:
54
+
55
+   list.append(result)
56
+
57
+ ダメでした。