Skip to content

Instantly share code, notes, and snippets.

@miriamspsantos
Created May 25, 2023 11:30
Show Gist options
  • Save miriamspsantos/af0e26e69af7c02b784e77dcfc8155c6 to your computer and use it in GitHub Desktop.
Save miriamspsantos/af0e26e69af7c02b784e77dcfc8155c6 to your computer and use it in GitHub Desktop.
Profiling Report for the Adult Census Income Dataset (Medium)
# 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")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment