Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Please help! Strange boolean results from factors in research!

How can False and True = True? Please disregard my labels and titles, my issue is with trying to understand the output of my result set. The and operator used to combine factors isn't behaving as I expect. When you run it you can see my table has many rows where False and True = True. Every other boolean operation seems correct but I can't make sense of the first row for ARNC for instance. What am I missing? Any help would be appreciated.

2 responses

Can't use the word 'and'. Replace it with the '&' operator as shown below. Factors only support a limited number of binary operators as specified in the docs (look just above the filter section https://www.quantopian.com/help#quantopian_pipeline_filters_Filter )

# This will work as expected  
shortable = _5stdDiv & closeDiff

Good luck