Skip to content

Commit 9aa9ece

Browse files
issue name before each test
1 parent 89e30cc commit 9aa9ece

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

pandas/tests/frame/methods/test_cov_corr.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ def test_corr_rank_ordered_categorical(
260260
self,
261261
method,
262262
):
263+
# GH #60306
263264
df = DataFrame(
264265
{
265266
"ord_cat": pd.Categorical(
@@ -290,6 +291,7 @@ def test_corr_rank_ordered_categorical_duplicate_columns(
290291
self,
291292
method,
292293
):
294+
# GH #60306
293295
cat = pd.CategoricalDtype(categories=[4, 3, 2, 1], ordered=True)
294296
df = DataFrame(
295297
{
@@ -556,6 +558,7 @@ def test_corr_rank_ordered_categorical(
556558
self,
557559
method,
558560
):
561+
# GH #60306
559562
pytest.importorskip("scipy")
560563
df1 = DataFrame(
561564
{

pandas/tests/methods/corr.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@
138138
def test_transform_ord_cat_cols_to_coded_cols(
139139
input_df: DataFrame, expected_df: DataFrame
140140
) -> None:
141+
# GH #60306
141142
# duplicate columns creation for dup columns
142143
if "dup_1" in input_df.columns:
143144
input_df.columns = ["dup" for _ in range(len(input_df.columns))]

pandas/tests/series/methods/test_cov_corr.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ def test_corr_rank_ordered_categorical(
228228
cat_series,
229229
other_series,
230230
):
231+
# GH #60306
231232
expected_corr = {"kendall": 0.33333333333333337, "spearman": 0.5}
232233
corr_calc = cat_series.corr(other_series, method=method)
233234
tm.assert_almost_equal(corr_calc, expected_corr[method])

0 commit comments

Comments
 (0)