Download preprocess.py from harheem/coex-prj: direct link, hf CLI and curl.
- Browser
- Download file 348 Bytes
-
https://huggingface.co/spaces/harheem/coex-prj/resolve/main/preprocess.py
- Command line
-
hf download hf://spaces/harheem/coex-prj/preprocess.py
-
curl -L -o preprocess.py https://huggingface.co/spaces/harheem/coex-prj/resolve/main/preprocess.py
348 Bytes
| import pandas as pd | |
| df = pd.read_excel('2025 스마트공장 • 자동화산업전_온라인 에디션 제품 등록_20241105174651.xlsx') | |
| df.columns | |
| target_cols = ['업체명(국문)', '카테고리','회사 소개(국문)', '제품명(국문)', '제품 정보(국문)'] | |
| df[target_cols].fillna('')[1:].to_csv("sample_data.csv", index=False) | |