BUG: Series.any() and .all() don't return bool values if dtype=object
State: closed

- [x] closes #12863
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry


Labels:
name: Dtype Conversions
description: Unexpected or buggy dtype conversions
name: Compat
description: pandas objects compatability with Numpy or Python functions

Comments:
Hello @MomIsBestFriend! Thanks for updating this PR. We checked the lines you've touched for [PEP 8](https://www.python.org/dev/peps/pep-0008) issues, and found:









There are currently no PEP 8 issues detected in this Pull Request. Cheers! :beers: 

##### Comment last updated at 2020-01-12 16:37:00 UTC
The only implementation I can think of right now, is to create a function to iterate over the values and returns a bool if it the any/all the values elevated to to True.

tl;dr
Implement ```any``` and ```all``` methods.
Does this bugfix affect DataFrame at all?  if so, test for that?

optional: could test the affected nanops functions directly in test_nanops.
what case is breaking that necessitates the brute force patch?
> what case is breaking that necessitates the brute force patch?

The original test case (from #12863)
```python
pd.Series(index=range(5), data=['a', 'b', 'c', 'd', 'e'])
```
I can't figure it out, when the original case is working, every test is failing.
I can xfail them all, but it's just seems wrong, that so many fails.
can you merge master and we'll take a look
> can you merge master and we'll take a look

I have merged master @jreback 
@MomIsBestFriend so the tests are failing, ping when green.
> @MomIsBestFriend so the tests are failing, ping when green.

@jreback I'm really not sure what to do, I see pretty much everywhere the error message of:

```python
AttributeError: type object 'bool' has no attribute 'any'
```

No idea on where to even start. should I change the ```nanany```/```nanall``` functions?

or change about 30 - 50 tests, it's just seems wrong to do so.
> > @MomIsBestFriend so the tests are failing, ping when green.
> 
> @jreback I'm really not sure what to do, I see pretty much everywhere the error message of:
> 
> ```python
> AttributeError: type object 'bool' has no attribute 'any'
> ```
> 
> No idea on where to even start. should I change the `nanany`/`nanall` functions?
> 
> or change about 30 - 50 tests, it's just seems wrong to do so.

try using np.any
> > > @MomIsBestFriend so the tests are failing, ping when green.
> > 
> > 
> > @jreback I'm really not sure what to do, I see pretty much everywhere the error message of:
> > ```python
> > AttributeError: type object 'bool' has no attribute 'any'
> > ```
> > 
> > 
> > No idea on where to even start. should I change the `nanany`/`nanall` functions?
> > or change about 30 - 50 tests, it's just seems wrong to do so.
> 
> try using np.any

This also doesn't work.
> This also doesn't work.

@MomIsBestFriend now that #29847 has been merged, I'm planning to do a significant cleanup of DataFrame._reduce and core.nanops.  So I think the path forward is for you and I to trade tasks.  Up for something new?
> Up for something new?

Yes just take it away from me :laughing: 


Closing this, because this I don't know how to fix it without breaking everything else.
Did the issue eventually got fixed? Can someone tldr the thread? Thanks !