def test_series_floor(): arr = np.random.random(100) * 100 sr = Series(arr) with pytest.warns( FutureWarning, match="Series.floor and DataFrame.floor are deprecated" ): sr = sr.floor() np.testing.assert_equal(sr.to_numpy(), np.floor(arr))
def test_series_floor(): arr = np.random.random(100) * 100 sr = Series(arr) np.testing.assert_equal(sr.floor().to_array(), np.floor(arr))