From 7e7634f5f9c864096ac14d8e8a5e476a0c7b04d1 Mon Sep 17 00:00:00 2001 From: Alex Barros Date: Mon, 7 Aug 2023 09:58:04 -0300 Subject: [PATCH] fix: enable text-categorical vars comparsion (#1417) --- src/ydata_profiling/report/structure/report.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/ydata_profiling/report/structure/report.py b/src/ydata_profiling/report/structure/report.py index fcc8864c6..6a72672c8 100644 --- a/src/ydata_profiling/report/structure/report.py +++ b/src/ydata_profiling/report/structure/report.py @@ -147,10 +147,11 @@ def render_variables_section( variable_type = list(types)[0] else: # This logic may be treated by the typeset - if (types == {"Numeric", "Categorical"}) or types == { - "Categorical", - "Unsupported", - }: + if ( + types == {"Numeric", "Categorical"} + or types == {"Categorical", "Unsupported"} + or types == {"Categorical", "Text"} + ): # Treating numeric as categorical, if one is unsupported, still render as categorical variable_type = "Categorical" else: