python/pandas/ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all()...md
... ...
@@ -0,0 +1,7 @@
1
+[python - Truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all() - Stack Overflow](https://stackoverflow.com/questions/36921951/truth-value-of-a-series-is-ambiguous-use-a-empty-a-bool-a-item-a-any-o)
2
+
3
+DataFrameからレコードを複数の条件で絞り込むときは、`()`で括る必要がある。
4
+
5
+```
6
+result = result[(result['var']>0.25) | (result['var']<-0.25)]
7
+```
... ...
\ No newline at end of file