Having issue filtering my result dataframe with an
or condition. I want my result
df to extract all column
var values that are above 0.25 and below -0.25.
This logic below gives me an ambiguous truth value however it work when I split this filtering in two separate operations. What is happening here? not sure where to use the suggested
a.empty(), a.bool(), a.item(),a.any() or a.all().
result = result[(result['var'] > 0.25) or (result['var'] < -0.25)]