Skip to main content

xlsx

Use this skill whenever the user wants to do anything with Excel spreadsheet files (.xlsx, .xls, .csv). This includes reading data, writing formulas, manipulating cells, formatting, filtering, creating charts, pivot tables, and any spreadsheet automation tasks.

소스 정보

저장소
huawei-noah/noah-research
최근 소스 활동
2026년 7월 24일 01:57
감지된 SKILL.md 언어
영어
스타
1,011
포크
270

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
xlsx
description
Use this skill whenever the user wants to do anything with Excel spreadsheet files (.xlsx, .xls, .csv). This includes reading data, writing formulas, manipulating cells, formatting, filtering, creating charts, pivot tables, and any spreadsheet automation tasks.
# Excel Spreadsheet Processing Use `openpyxl` to read and write .xlsx files. ## Quick Start ```python from openpyxl import load_workbook wb = load_workbook("input.xlsx") ws = wb["Sheet1"] value = ws["A1"].value ws["B2"] = 42 ws["C2"] = "=SUM(A2:B2)" wb.save("output.xlsx") ``` Use this for direct cell edits, formula updates, and simple workbook changes. ## Reading Data with pandas ```python import pandas as pd df = pd.read_excel('file.xlsx') # First sheet all_sheets = pd.read_excel('file.xlsx', sheet_name=None) # All sheets as dict ``` ## Common Pitfalls - **Cell indices are 1-based**: `ws.cell(row=1, column=1)` is A1. - **`data_only=True` destroys formulas on save**: Use a separate workbook object for reading calculated values. - **`ws.max_row` overcounts**: May include formatted-but-empty rows. Scan the column to find the last non-empty cell when you need the true data range.
GitHub에서 보기