Skip to content

Commit

Permalink
fix: enable text-categorical vars comparsion (#1417)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbarros authored and aquemy committed Aug 9, 2023
1 parent 1cf71c6 commit b860476
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/ydata_profiling/report/structure/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b860476

Please sign in to comment.