Skip to content

Commit

Permalink
Convert pd_series1 to float64 type. (#2466)
Browse files Browse the repository at this point in the history
Co-authored-by: Dennis Bader <[email protected]>
  • Loading branch information
quant12345 and dennisbader authored Jul 26, 2024
1 parent 22c617b commit a9c180a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion darts/tests/metrics/test_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ class TestMetrics:
pd_train_not_periodic = pd.Series(
range(31), index=pd.date_range("20121201", "20121231")
)
pd_series1 = pd.Series(range(10), index=pd.date_range("20130101", "20130110"))
pd_series1 = pd.Series(
range(10), index=pd.date_range("20130101", "20130110")
).astype("float64")
pd_series2 = pd.Series(
np.random.rand(10) * 10 + 1, index=pd.date_range("20130101", "20130110")
)
Expand Down

0 comments on commit a9c180a

Please sign in to comment.