From dffa0c5b008df9d2c157f8296a54008883efee96 Mon Sep 17 00:00:00 2001 From: Max Halford Date: Tue, 27 Jun 2023 16:12:28 +0200 Subject: [PATCH] Update test_mca.py --- tests/test_mca.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_mca.py b/tests/test_mca.py index 4273995f..e69d28bc 100644 --- a/tests/test_mca.py +++ b/tests/test_mca.py @@ -90,13 +90,13 @@ def test_issue_131(): ... }) >>> mca = prince.MCA(engine="scipy") >>> mca = mca.fit(df) - >>> mca.transform(df).round(2) + >>> mca.transform(df).round(2).abs().sort_index(axis='columns') 0 1 0 0.00 2.0 - 1 0.65 -0.5 - 2 0.65 -0.5 - 3 0.65 -0.5 - 4 -1.94 -0.5 + 1 0.65 0.5 + 2 0.65 0.5 + 3 0.65 0.5 + 4 1.94 0.5 >>> mca.K_, mca.J_ (2, 8)