with one click
profiling
데이터 프로파일링 및 자동화된 EDA를 위한 유틸리티 스크립트
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
데이터 프로파일링 및 자동화된 EDA를 위한 유틸리티 스크립트
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | profiling |
| description | 데이터 프로파일링 및 자동화된 EDA를 위한 유틸리티 스크립트 |
| version | 1.0.0 |
| tags | ["data-science","eda","profiling","statistics"] |
데이터셋의 품질과 특성을 자동으로 분석하여 종합 리포트를 생성하는 스킬입니다.
이 스킬은 ydata-profiling (구 pandas-profiling)을 사용하여 다음을 수행합니다:
# uv 설치 (한 번만)
curl -LsSf https://astral.sh/uv/install.sh | sh
# 또는 macOS
brew install uv
# 의존성 설치
cd plugins/data-profiling/skills/profiling
uv pip install -r requirements.txt
cd plugins/data-profiling/skills/profiling
pip install -r requirements.txt
python3 -c "import ydata_profiling; print(f'✓ ydata-profiling {ydata_profiling.__version__}')"
cd plugins/data-profiling/skills/profiling/scripts
# 기본 사용법
python generate_profile.py \
--data-path "path/to/data.csv" \
--output-dir "outputs/reports"
# 타겟 컬럼 지정
python generate_profile.py \
--data-path "samples/datascience/data/raw/creditcard.csv" \
--target-column "Class" \
--mode explorative
# 대용량 데이터 샘플링
python generate_profile.py \
--data-path "large_data.csv" \
--sample-size 50000 \
--mode minimal
/profile-data --data-path "./data/raw/creditcard.csv" --target-column "Class"
generate_profile.py주요 기능:
의존성:
# uv 사용 (권장)
cd plugins/data-profiling/skills/profiling
uv pip install -r requirements.txt
# 또는 pip 사용
pip install -r requirements.txt
포함 패키지:
pandas - 데이터 처리ydata-profiling - 자동화된 EDA주요 파라미터:
| 파라미터 | 설명 | 기본값 |
|---|---|---|
--data-path | 데이터 파일 경로 | (필수) |
--target-column | 타겟 변수 컬럼명 | None |
--sample-size | 샘플링 크기 | None (전체) |
--mode | 프로파일링 모드 | explorative |
--output-dir | 리포트 저장 디렉토리 | outputs/reports |
--no-browser | 브라우저 자동 오픈 비활성화 | False |
생성된 리포트는 다음 섹션을 포함합니다:
각 변수마다:
자동 탐지되는 이슈:
python generate_profile.py \
--data-path "samples/datascience/data/raw/creditcard.csv" \
--target-column "Class" \
--mode explorative \
--output-dir "outputs/reports"
예상 출력:
═══════════════════════════════════════════════════════════
데이터 프로파일링 시작
═══════════════════════════════════════════════════════════
✓ 데이터 로드 완료: 284,807건, 31개 컬럼
✓ 메모리 사용량: 67.4 MB
─────────────────────────────────────────────────────────
기본 정보
─────────────────────────────────────────────────────────
전체 거래 건수: 284,807건
특성 개수: 31개
결측치: 0개
클래스 분포:
정상 거래 (Class 0): 284,315건 (99.83%)
사기 거래 (Class 1): 492건 (0.17%)
불균형 비율: 1:578
─────────────────────────────────────────────────────────
프로파일링 리포트 생성 중...
─────────────────────────────────────────────────────────
⏳ 약 5분 소요될 수 있습니다...
✓ 완료!
📊 리포트 저장 위치: outputs/reports/creditcard_profile_report.html
🌐 브라우저에서 리포트가 자동으로 열렸습니다.
⚠️ 주요 발견사항:
- 클래스 불균형: 1:578 (사기: 0.17%)
- Amount 변수에서 이상치 탐지
- Time 변수는 초 단위 경과 시간
💡 권고사항:
1. 클래스 불균형 처리 필요 (SMOTE, Undersampling)
2. Amount 변수 스케일링 권장 (StandardScaler, RobustScaler)
3. Time 변수에서 시간대 특성 추출 고려
4. V1-V28은 PCA 변환된 특성 (직접 해석 어려움)
다음 단계:
/engineer-features: 특성 엔지니어링
/handle-imbalance: 클래스 불균형 처리
스크립트는 운영체제를 자동 감지하여 적절한 명령어로 브라우저를 엽니다:
import platform
import subprocess
def open_in_browser(filepath):
"""운영체제에 맞게 브라우저에서 HTML 파일 열기"""
system = platform.system()
if system == 'Darwin': # macOS
subprocess.run(['open', filepath])
elif system == 'Linux':
subprocess.run(['xdg-open', filepath])
elif system == 'Windows':
subprocess.run(['start', filepath], shell=True)
비활성화 옵션:
# 브라우저 자동 오픈 안 함
python generate_profile.py \
--data-path "data.csv" \
--no-browser
샘플링 사용:
--sample-size 50000
Minimal 모드:
--mode minimal
결합:
python generate_profile.py \
--data-path "big_data.csv" \
--sample-size 100000 \
--mode minimal
{dataset_name}_profile_report.html
예시:
creditcard_profile_report.htmlcustomer_churn_profile_report.htmlHTML 리포트는 용량이 크므로 .gitignore에 추가:
outputs/reports/*.html
MIT License
VM 설정, SSH 구성, OpenClaw 설치 및 GOG CLI 설정을 포함하여 Google Cloud Platform에 OpenClaw를 배포하는 포괄적인 가이드입니다.
ElevenLabs AI API를 통한 고품질 음성 생성, 사운드 이펙트, 음성 클론 가이드
키움증권 REST API를 사용하여 주식 데이터 조회, 계좌 자산 현황 파악, OAuth 인증, 환경 관리(모의투자/실전투자)를 수행할 때 사용. 주가 조회, 자산 조회, API 인증, 환경 전환이 필요한 경우 이 스킬을 활용.
This skill should be used when working with OpenDART (금융감독원 전자공시시스템) API for retrieving corporate disclosures, financial statements, dividend information, and major shareholder reports. Use this skill when the user needs to query Korean stock disclosures, check company earnings, retrieve financial data from DART, or analyze corporate filings.
This skill should be used when processing video, audio, or image files with FFmpeg. Use this skill for tasks like adding text/subtitles, extracting/mixing audio, converting formats, merging/trimming videos, applying transitions/fades, overlaying images/videos, and querying media metadata. Ideal for multimedia processing, video editing, format conversion, and media file manipulation.
Automated video editing with Whisper STT analysis and ElevenLabs TTS narration. This skill should be used when editing raw video recordings to remove silence gaps, retake/duplicate segments, and garbage audio, or when replacing narration with AI-generated TTS voice. Supports dynamic silence trimming based on Korean text analysis. Ideal for screen recordings, lecture captures, and narrated videos.