data-analysis

Analyze CSV, Excel, PDF, and image data with Python to generate statistics, charts, and reports.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/chhpt/skills --skill data-analysis-chhpt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-analysis
Source: https://github.com/chhpt/skills/tree/main/skills/data-analysis
Command: npx skills add https://github.com/chhpt/skills --skill data-analysis-chhpt

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandas, numpy, matplotlib, seaborn, plotly, scipy, scikit-learn, tabulate, python-docx, and includes references (resource) components.

What problem does it solve? It turns raw data from spreadsheets, documents, and images into validated insights and reports without overwhelming the context window, preventing token overflow and garbage-in-garbage-out analysis errors. ## Core Features & Use Cases - Safe Data Exploration: Reads only metadata and small samples (n=5) from CSV, XLSX, DOCX, PDF, Markdown, PNG, and JPG sources, extracting tabular data into CSV for analysis. - Data Quality Checks: Automatically inspects completeness, uniqueness, accuracy, consistency, and cross-file referential integrity before analysis. - Analysis & Visualization: Performs descriptive statistics, hypothesis testing, clustering, time series analysis, and produces charts (Matplotlib, Seaborn, Plotly) plus Markdown, PDF, or DOCX reports. - Use Case: Given a sales CSV and a product category Excel file, merge them, filter refunds, aggregate monthly revenue, and deliver a trend chart with a written insight report. ## Quick Start Analyze the attached sales_2023.csv file, check its data quality, and generate a monthly sales trend report with charts.

Frequently Asked Questions about data-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze a large CSV file without running out of memory?

Read only a small sample first using pd.read_csv with nrows=5 to inspect columns and dtypes before writing full analysis code. For large files, use chunking or sampling rather than loading everything into memory at once.

How to extract table data from PDF or Word documents for analysis?

Use dedicated document tools to read DOCX and PDF files, then extract the target data and save it as a CSV file. Once converted, the data can be loaded with Pandas and analyzed like any other tabular source.

What data quality checks should I run before analysis?

Check completeness (nulls, empty strings, pseudo-missing values like -1 or 9999), uniqueness (duplicate rows and primary keys), accuracy (valid ranges and types), consistency (units and enum values), and referential integrity across related files.

Which Python libraries are used for data analysis and visualization?

Pandas and NumPy handle core processing, SciPy and scikit-learn cover statistics and mining, and Matplotlib, Seaborn, and Plotly produce static or interactive charts. The tabulate library formats Markdown tables for reports.

Why does my CSV fail to load or show garbled characters?

Encoding mismatches are the usual cause; retry reading with encoding='gbk' or encoding='latin1'. If all data appears in one column, the delimiter is wrong, so try sep=';' or sep='\t'.

Can it generate PDF or Word analysis reports?

Yes, reports can be delivered as Markdown, PDF, or DOCX. PDF output is typically produced via HTML conversion tools like WeasyPrint or Pandoc, while DOCX reports are built with python-docx using native headings, tables, and embedded images.