# Make the necessary imports | |
import pandas as pd | |
from ydata_profiling import ProfileReport | |
# Load the data | |
df = pd.read_csv('data/adult.csv', na_values='?') | |
# Generate the report | |
profile = ProfileReport(df,title="Adult Census Profile") | |
# Save the report to .html | |
profile.to_file("adult_report.html") |