REGR: fix DataFrame sum and prod with min_count and numeric_only
- [ ] closes #41074
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry

it appears that the clean-up in #35899 to simplify _reduce may have been a bit premature, have reinstated a few lines of the removed code for backport purposes.

The longer term fix would probably be to support min_count in _mgr.reduce, https://github.com/pandas-dev/pandas/pull/40143#issuecomment-787945291
this overlaps with https://github.com/pandas-dev/pandas/pull/41706 ? ok so this is an alt to https://github.com/pandas-dev/pandas/pull/41711 ? > this overlaps with #41706 ?

#41711? yes and no. we could just do #41711 and not backport. do this, backport this and then merge #41711. or merge #41711 and I reopen this directly against 1.2.x

those options don't include do #41711, backport it and close this one. > ok so this is an alt to #41711 ?

no really, this intended as a backport? #41711 was opened after is the alt.  > > this overlaps with #41706 ?
> 
> #41711? yes and no. we could just do #41711 and not backport. do this, backport this and then merge #41711. or merge #41711 and I reopen this directly against 1.2.x
> 
> those options don't include do #41711, backport it and close this one.

#41711 and I reopen this directly against 1.2.x

why is this not the preferred option? > #41711 and I reopen this directly against 1.2.x
> 
> why is this not the preferred option?

because we normally merge to master and backport. If #41711 gets merged first. then our options reduce. closing in favor of https://github.com/pandas-dev/pandas/pull/41711#issuecomment-851591292

The change here was effectively only 

```
        else:
            if numeric_only:
                data = _get_data()
                labels = data._get_agg_axis(axis)
                values = data.values
            result = func(values)
```

when min_count and numeric_only is given, without touching any other library code