Skip to content

Commit e3a9f10

Browse files
quant12345fabclmnt
authored andcommitted
test: In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior)
1 parent 9c85bc7 commit e3a9f10

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/unit/test_pandas/test_correlations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def test_numeric_auto_equals_spearman(test_config, test_dataframe, test_summary)
6666
}
6767
auto_result = pandas_auto_compute(test_config, df, summary)
6868
spearman_result = pandas_spearman_compute(test_config, df, summary)
69-
assert auto_result.iloc[0][1] == pytest.approx(spearman_result.iloc[0][1], 0.01)
69+
assert auto_result.iloc[1, 0] == pytest.approx(spearman_result.iloc[1, 0], 0.01)
7070

7171

7272
def test_categorical_auto_equals_equals_cramers(
@@ -80,4 +80,4 @@ def test_categorical_auto_equals_equals_cramers(
8080
}
8181
auto_result = pandas_auto_compute(test_config, df, summary)
8282
cramers_result = pandas_cramers_compute(test_config, df, summary)
83-
assert auto_result.iloc[0][1] == pytest.approx(cramers_result.iloc[0][1], 0.01)
83+
assert auto_result.iloc[1, 0] == pytest.approx(cramers_result.iloc[1, 0], 0.01)

0 commit comments

Comments
 (0)