We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 497dc7e commit 583aca6Copy full SHA for 583aca6
pandas/tests/series/methods/test_cov_corr.py
@@ -192,8 +192,8 @@ def test_corr_rank_ordered_categorical(self, method,):
192
"spearman": stats.spearmanr
193
}
194
ser_ord_cat = pd.Series( pd.Categorical(
195
- ["low", "m", "h", "vh"],
196
- categories=["low", "m", "h", "vh"], ordered=True
+ ["low", "med", "high", "very_high"],
+ categories=["low", "med", "high", "very_high"], ordered=True
197
))
198
ser_ord_cat_codes = ser_ord_cat.cat.codes.replace(-1, np.nan)
199
ser_ord_int = pd.Series([0, 1, 2, 3])
@@ -212,8 +212,8 @@ def test_corr_rank_ordered_categorical(self, method,):
212
tm.assert_almost_equal(corr_calc, corr_expected)
213
214
ser_ord_cat_shuff = pd.Series( pd.Categorical(
215
- ["h", "low", "vh", "m"],
216
+ ["high", "low", "very_high", "med"],
217
218
ser_ord_cat_shuff_codes = ser_ord_cat_shuff.cat.codes.replace(-1, np.nan)
219
0 commit comments