(self)
| 29 | tm.assert_frame_equal(result, float_frame.apply(np.sqrt)) |
| 30 | |
| 31 | def test_sum_axis_behavior(self): |
| 32 | # GH#52042 df.sum(axis=None) now reduces over both axes, which gets |
| 33 | # called when we do np.sum(df) |
| 34 | |
| 35 | arr = np.random.default_rng(2).standard_normal((4, 3)) |
| 36 | df = DataFrame(arr) |
| 37 | |
| 38 | res = np.sum(df) |
| 39 | expected = df.to_numpy().sum(axis=None) |
| 40 | assert res == expected |
| 41 | |
| 42 | def test_np_ravel(self): |
| 43 | # GH26247 |