Skip to content

Commit b860476

Browse files
alexbarrosaquemy
authored andcommitted
fix: enable text-categorical vars comparsion (#1417)
1 parent 1cf71c6 commit b860476

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

  • src/ydata_profiling/report/structure

src/ydata_profiling/report/structure/report.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,11 @@ def render_variables_section(
147147
variable_type = list(types)[0]
148148
else:
149149
# This logic may be treated by the typeset
150-
if (types == {"Numeric", "Categorical"}) or types == {
151-
"Categorical",
152-
"Unsupported",
153-
}:
150+
if (
151+
types == {"Numeric", "Categorical"}
152+
or types == {"Categorical", "Unsupported"}
153+
or types == {"Categorical", "Text"}
154+
):
154155
# Treating numeric as categorical, if one is unsupported, still render as categorical
155156
variable_type = "Categorical"
156157
else:

0 commit comments

Comments
 (0)