아미(아름다운미소)

pandas_profiling (대규모 데이터 분석) 본문

랭귀지/pandas

pandas_profiling (대규모 데이터 분석)

유키공 2025. 3. 28. 13:02
import pandas as pd
from pandas_profiling import ProfileReport

# 1. 데이터프레임 준비 (예시)
df = pd.read_csv("your_data.csv")

# 2. 프로파일링 리포트 생성 → 가장 먼저 실행!
profile = ProfileReport(df, explorative=True)

# 3. (선택사항) 추가 설정 (예: 제목 변경, 변수 조정)
profile.set_variable("title", "My Custom Report")

# 4. 최종 저장 → 마지막에 실행!
profile.to_file("report.html")​
from pandas_profiling import ProfileReport
profile = ProfileReport(df, explorative=True)
profile.to_file("report.html")
Comments