import numpy as np import pandas as pd from pandas_profiling import ProfileReport profile = ProfileReport(train, title="Pandas Profiling Report") profile.to_widgets() profile.to_file("your_report.html")