Skip to content

Commit

Permalink
Fix Pandas deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
ecomodeller committed Oct 16, 2023
1 parent ba7ef11 commit 5d5e7cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/test_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,8 @@ def test_select_subset_isel_multiple_idxs():
def test_decribe(ds1):
df = ds1.describe()
assert df.columns[0] == "Foo"
assert df.loc["mean"][1] == pytest.approx(0.2)
assert df.loc["max"][0] == pytest.approx(0.1)
assert df.Bar["mean"] == pytest.approx(0.2)
assert df.Foo["max"] == pytest.approx(0.1)


def test_create_undefined():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_dfs0.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ def test_read_dfs0_to_dataframe():
dfs = Dfs0(dfs0file)
df = dfs.to_dataframe()

assert np.isnan(df[df.columns[0]][2])
assert np.isnan(df[df.columns[0]].iloc[2])


def test_read_dfs0_to_matrix():
Expand Down

0 comments on commit 5d5e7cd

Please sign in to comment.