julioasotodv / spark-df-profiling

Create HTML profiling reports from Apache Spark DataFrames
MIT License
195 stars 77 forks source link

Adding rendered_html method to display html in Databricks notebook #22

Closed mparkhe closed 5 years ago

mparkhe commented 5 years ago

The existing ProfileReport.render_standalone seems to error on in rendering HTML in javascript code.

image

However using the logic in ProfileReport.to_file like below, works in Databricks notebook. Adding a method to render displayable HTML

image


With the fix, displaying report should work like so

import spark_df_profiling

report = spark_df_profiling.ProfileReport(df)
displayHTML(report.rendered_html())