-
-
Save arashbehmand/326c8b6ac9ccfe350bf2d85fe390cfaf to your computer and use it in GitHub Desktop.
[spark-df-profiling] #pyspark
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %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')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment