%pyspark # PersonalPip.install("spark-df-profiling") # PersonalPip.install('pandas==0.25.1',upgrade=True) import spark_df_profiling import io import tempfile profile = spark_df_profiling.ProfileReport(df) mem_buf = io.BytesIO() print('%html') with tempfile.NamedTemporaryFile() as tmp: profile.to_file(outputfile=tmp.name) tmp.seek(0) print(tmp.read().decode('utf8'))