Skip to content

Commit

Permalink
Merge pull request #94 from provectus/fix_wordcloud
Browse files Browse the repository at this point in the history
[BUGFIX] disable wordcloud when no words
  • Loading branch information
bvolodarskiy authored Jun 20, 2023
2 parents d912689 + 111d6b0 commit 9d55967
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion functions/data_test/profiling.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,15 @@ def profile_data(df, suite_name, cloudfront, datasource_root, source_covered,
try:
profile = ProfileReport(df, title=f"{suite_name} Profiling Report",
minimal=True, pool_size=1)
report = profile.to_html()
except TypeError:
profile = ProfileReport(df, title=f"{suite_name} Profiling Report",
pool_size=1)
try:
report = profile.to_html()
except ValueError:
profile.config.vars.text.words = False
report = profile.to_html()

if not source_covered:
try:
pipeline_config = json.loads(wr.s3.read_json(
Expand Down

0 comments on commit 9d55967

Please sign in to comment.