Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ignore None type categories #1632

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@
for category_alias_name, category_alias_counts in sorted(
summary["category_alias_char_counts"].items(), key=lambda x: -len(x[1])
):
if category_alias_name is None:
continue

Check warning on line 140 in src/ydata_profiling/report/structure/variables/render_categorical.py

View check run for this annotation

Codecov / codecov/patch

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

Added line #L140 was not covered by tests

category_alias_name = category_alias_name.replace("_", " ")
cats.append(
FrequencyTable(
Expand Down
Loading