I am looking for an equivalent to df.any() and df.all() that would work on series that are not in a dataframe. I would rather not use the | and & operators, because i want to chain the result with other methods in a more readable way.
For example, I have two series of booleans of same length- s1, s2. I would like to be able to do something like this:
pd.any(s1, s2)
That would return the same result as this:
s1 | s2
I also found a way to do do "and" comparison:
s1.add(s2)
The above statements returns the same result as:
s1 & s2
It seems to me like there might be a more explicit way to do an "and" operation.
Thanks!