Skip to content

Commit

Permalink
Access a value by position, use iloc. (#2448)
Browse files Browse the repository at this point in the history
* "In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior)"

* "In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior)"

---------

Co-authored-by: madtoinou <[email protected]>
  • Loading branch information
quant12345 and madtoinou authored Jul 8, 2024
1 parent ecbf203 commit b6dfcfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions darts/tests/test_timeseries_static_covariates.py
Original file line number Diff line number Diff line change
Expand Up @@ -647,9 +647,9 @@ def test_ts_methods_with_static_covariates(self):
static_covs = pd.Series([0, 1], index=["st1", "st2"]).astype(int)
ts = ts.with_static_covariates(static_covs)

assert ts.static_covariates.dtypes[0] == "float64"
assert ts.static_covariates.dtypes.iloc[0] == "float64"
ts = ts.astype("float32")
assert ts.static_covariates.dtypes[0] == "float32"
assert ts.static_covariates.dtypes.iloc[0] == "float32"

ts_stoch = ts.from_times_and_values(
times=ts.time_index,
Expand Down

0 comments on commit b6dfcfe

Please sign in to comment.