Skip to content

Commit

Permalink
test: In a future version, integer keys will always be treated as lab…
Browse files Browse the repository at this point in the history
…els (consistent with DataFrame behavior)
  • Loading branch information
quant12345 authored and fabclmnt committed Jul 15, 2024
1 parent 9c85bc7 commit e3a9f10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/test_pandas/test_correlations.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def test_numeric_auto_equals_spearman(test_config, test_dataframe, test_summary)
}
auto_result = pandas_auto_compute(test_config, df, summary)
spearman_result = pandas_spearman_compute(test_config, df, summary)
assert auto_result.iloc[0][1] == pytest.approx(spearman_result.iloc[0][1], 0.01)
assert auto_result.iloc[1, 0] == pytest.approx(spearman_result.iloc[1, 0], 0.01)


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

0 comments on commit e3a9f10

Please sign in to comment.