databricks-demos / dbdemos

Demos to implement your Databricks Lakehouse
Other
255 stars 80 forks source link

lakehouse-retail-c360 #62

Closed BrkSyd closed 8 months ago

BrkSyd commented 10 months ago

During the demo if you try to select any variables from the dropdown list in the html profile generated it returns a Javascript error. "Uncaught TypeError: Cannot read properties of undefined (reading 'toLowerCase') " .

This can be fixed by adding the parameter minimal = True to ProfileReport function.

The 7th cell should be;

from pandas_profiling import ProfileReport df_profile = ProfileReport(df, minimal = True, correlations={ "auto": {"calculate": True}, "pearson": {"calculate": True}, "spearman": {"calculate": True}, "kendall": {"calculate": True}, "phi_k": {"calculate": True}, "cramers": {"calculate": True}, }, title="Profiling Report", progress_bar=False, infer_dtypes=False) profile_html = df_profile.to_html()

displayHTML(profile_html)

QuentinAmbard commented 8 months ago

Hi @BrkSyd , We fully updated the retail c360 content, could you give it a try & let me know if it's still an issue? It's working when I tried

BrkSyd commented 8 months ago

Hey Quentin, issue seems to be resolved. I'll close it