Reference instructions for reading, writing, formatting and converting Excel XLSX files with Python and JavaScript libraries.
- What it does
- Provides code patterns for working with Excel spreadsheets programmatically, covering reading and writing cells and rows, styling headers and number formats, adding formulas, and converting between CSV and XLSX. It shows both openpyxl and pandas approaches in Python plus the xlsx library in JavaScript, and includes operations such as merging multiple workbooks and pivoting data. The deliverable is guidance and snippets rather than a runnable tool.
- When to use it
- Use when an agent needs to create, edit, format or extract data from Excel workbooks, or convert spreadsheets to and from CSV. It is also relevant when merging several Excel files or applying formulas and cell formatting.
- Requirements
- Python with openpyxl and pandas for the Python examples, or a JavaScript environment with the xlsx package for the JavaScript examples. No scripts are shipped; the skill is instructions and code samples only.