Skip to content

Commit f004de6

Browse files
committed
MAINT: Protect agaisnt fugure changes in NumPy
Avoid dtypes in arrays
1 parent 4f6159b commit f004de6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/window/test_ewm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def test_ewma_halflife_without_times(halflife_with_times):
108108
@pytest.mark.parametrize("min_periods", [0, 2])
109109
def test_ewma_with_times_equal_spacing(halflife_with_times, times, min_periods):
110110
halflife = halflife_with_times
111-
data = np.arange(10)
111+
data = np.arange(10.)
112112
data[::2] = np.nan
113113
df = DataFrame({"A": data, "time_col": date_range("2000", freq="D", periods=10)})
114114
result = df.ewm(halflife=halflife, min_periods=min_periods, times=times).mean()

0 commit comments

Comments
 (0)