REGR: fix numpy accumulate ufuncs for DataFrame
Closes #39259

So we shouldn't call non-`__call__` ufuncs block-by-block, since they can work along a certain axis, like `accumulate`. In this case there were 2 problems: 1) we were applying the ufunc on the Block values, which is 2D but transposed compared to the DataFrame (so the accumulation was done in the wrong direction) and 2) the `axis` keyword was also not passed through in case the user specified it.