Skip to content

Commit

Permalink
Address pandas 2.2 deprecations in test_dataset
Browse files Browse the repository at this point in the history
"Series.__getitem__ treating keys as positions"
  • Loading branch information
khaeru committed Jan 23, 2024
1 parent 0c1327c commit 00caaca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sdmx/tests/test_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def test_pandas(self, msg):
assert isinstance(s3, pd.Series)

# Test a particular value
assert s3[0] == 1.2894
assert s3.iloc[0] == 1.2894

# Length of index
assert len(s3.index.names) == 6
Expand Down
2 changes: 1 addition & 1 deletion sdmx/tests/test_dataset_ss.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def test_pandas(self, msg):
s3 = sdmx.to_pandas(data.series[3], attributes="")
assert isinstance(s3, pd.Series)
# With expected values
assert s3[0] == 1.2894
assert s3.iloc[0] == 1.2894

# Single series can be converted with attributes
s3_attr = sdmx.to_pandas(data.series[3], attributes="osgd")
Expand Down

0 comments on commit 00caaca

Please sign in to comment.