Skip to content

Pandas-based workflow for reading, analyzing, cleaning, merging, charting, and formatting Excel spreadsheets and .xlsx files.

CCM score
60 of 100
skills.sh installs
2.7K
GitHub stars
34.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers reading single and multiple sheets, groupby aggregation, pivot tables, and data cleaning with pandas
  • Includes code for writing formatted workbooks with openpyxl, generating bar and pie charts with matplotlib, and merging files
  • Provides performance tips such as usecols, chunksize, and explicit dtype settings for large files
  • Designed for analysts working with tabular data who want scripted Excel processing rather than manual spreadsheet edits

Install

$ npx -y skills add davila7/claude-code-templates --skill 'Excel Analysis' -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Excel Analysis

Quick start

Read Excel files with pandas:

import pandas as pd

# Read Excel file
df = pd.read_excel("data.xlsx", sheet_name="Sheet1")

# Display first few rows
print(df.head())

# Basic statistics
print(df.describe())

Reading multiple sheets

Process all sheets in a workbook:

import pandas as pd

# Read all sheets
excel_file = pd.ExcelFile("workbook.xlsx")

for sheet_name in excel_file.sheet_names:
    df = pd.read_excel(excel_file, sheet_name=sheet_name)
    print(f"\n{sheet_name}:")
    print(df.head())

Data analysis

Perform common analysis tasks:

import pandas as pd

df = pd.read_excel("sales.xlsx")

# Group by and aggregate
sales_by_region = df.groupby("region")["sales"].sum()
print(sales_by_region)

# Filter data
high_sales = df[df["sales"] > 10000]

# Calculate metrics
df["profit_margin"] = (df["revenue"] - df["cost"]) / df["revenue"]

# Sort by column
df_sorted = df.sort_values("sales", ascending=False)

Creating Excel files

Write data to Excel with formatting:

import pandas as pd

Details

Repository
github.com/davila7/claude-code-templates
Categories
Office Files & Slides, Data Science & Analytics
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 398

Similar to Excel Analysis

More Office Files & Slides