Skip to content

Commit a522c32

Browse files
desobolevskyfabclmnt
authored andcommitted
fix: ignore None type categories
1 parent 64ddc0d commit a522c32

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ydata_profiling/report/structure/variables/render_categorical.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ def render_categorical_unicode(
136136
for category_alias_name, category_alias_counts in sorted(
137137
summary["category_alias_char_counts"].items(), key=lambda x: -len(x[1])
138138
):
139+
if category_alias_name is None:
140+
continue
141+
139142
category_alias_name = category_alias_name.replace("_", " ")
140143
cats.append(
141144
FrequencyTable(

0 commit comments

Comments
 (0)