Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问clear审计通过

pandas-data-analysis熊猫数据分析

Agent Skill

用于辅助 Python 项目开发、测试、依赖管理和常见框架工作流。它适合让 Agent 阅读 Python 代码、定位测试问题、整理运行命令、生成脚本或分析数据处理逻辑。使用时需要确认项目虚拟环境、依赖版本和测试入口;涉及执行脚本、读写文件、访问数据库或调用外部 API 时,应先明确运行目录和输入输出范围,避免误改生产数据。

总安装

25,237

周安装

619

GitHub Stars

5

下载量

7,652
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:pandas-data-analysis(熊猫数据分析)
来源仓库:https://github.com/pluginagentmarketplace/custom-plugin-python
仓库路径:skills/pandas-data-analysis
安装命令:
npx skills add https://github.com/pluginagentmarketplace/custom-plugin-python --skill 'Pandas Data Analysis'
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/pluginagentmarketplace/custom-plugin-python --skill 'Pandas Data Analysis'

简介

使用 Pandas、NumPy 和 Matplotlib 进行数据操作、分析和可视化。

  • 涵盖结构化数据处理的 DataFrame 和 Series 创建、索引、过滤和类型转换
  • 包括数据清理技术:缺失值处理、重复数据删除、字符串操作和日期/时间解析
  • 提供 GroupBy 聚合、数据透视表、多级索引和窗口函数以进行探索性分析
  • 集成 Matplotlib 和 Seaborn,用于统计绘图、趋势可视化和相关性分析
  • 三个实践项目涵盖客户分析、时间序列分析和自动数据质量报告

SKILL.md

Pandas Data Analysis

Overview

Master data analysis with Pandas, the powerful Python library for data manipulation and analysis. Learn to clean, transform, analyze, and visualize data effectively.

Learning Objectives

  • Load and manipulate data from various sources (CSV, Excel, SQL, APIs)
  • Clean and transform messy datasets
  • Perform exploratory data analysis (EDA)
  • Aggregate and group data for insights
  • Create compelling visualizations
  • Optimize performance for large datasets

Core Topics

1. Pandas DataFrames & Series

  • Creating DataFrames from various sources
  • Indexing and selecting data (loc, iloc, at, iat)
  • Filtering and boolean indexing
  • Adding/removing columns and rows
  • Data types and conversions

Code Example:

import pandas as pd
import numpy as np

# Create DataFrame
data = {
    'name': ['Alice', 'Bob', 'Charlie', 'David'],
    'age': [25, 30, 35, 28],
    'salary': [50000, 60000, 75000, 55000],
    'department': ['IT', 'HR', 'IT', 'Sales']
}
df = pd.DataFrame(data)

# Indexing and filtering
it_employees = df[df['department'] == 'IT']
high_earners = df.loc[df['salary'] > 55000, ['name', 'salary']]

# Adding calculated columns
df['annual_bonus'] = df['salary'] * 0.10
df['age_group'] = pd.cut(df['age'], bins=[0, 30, 40, 100], labels=['Young', 'Mid', 'Senior'])

print(df)

2. Data Cleaning & Transformation

  • Handling missing data (dropna, fillna, interpolate)
  • Removing duplicates
  • String operations and text cleaning
  • Date/time parsing and manipulation
  • Type conversions and casting
  • Applying custom functions (apply, map, applymap)

Code Example:

import pandas as pd

# Load data with missing values
df = pd.read_csv('sales_data.csv')

# Handle missing values
df['price'].fillna(df['price'].median(), inplace=True)
df['category'].fillna('Unknown', inplace=True)
df.dropna(subset=['customer_id'], inplace=True)

# Clean text data
df['product_name'] = df['product_name'].str.strip().str.lower()
df['product_name'] = df['product_name'].str.replace('[^a-zA-Z0-9 ]', '', regex=True)

# Convert dates
df['order_date'] = pd.to_datetime(df['order_date'])
df['year'] = df['order_date'].dt.year
df['month'] = df['order_date'].dt.month

# Remove duplicates
df.drop_duplicates(subset=['order_id'], keep='first', inplace=True)

# Apply custom function
def categorize_price(price):
    if price < 50:
        return 'Low'
    elif price < 100:
        return 'Medium'
    else:
        return 'High'

df['price_category'] = df['price'].apply(categorize_price)

3. Aggregation & Grouping

  • GroupBy operations
  • Aggregation functions (sum, mean, count, etc.)
  • Pivot tables and cross-tabulation
  • Multi-level indexing
  • Window functions (rolling, expanding)

Code Example:

import pandas as pd

# Sample sales data
df = pd.read_csv('sales.csv')

# GroupBy aggregation
dept_stats = df.groupby('department').agg({
    'salary': ['mean', 'min', 'max'],
    'employee_id': 'count'
})

# Multiple groupby
sales_by_region_product = df.groupby(['region', 'product_category'])['sales'].sum()

# Pivot table
pivot = df.pivot_table(
    values='sales',
    index='product_category',
    columns='quarter',
    aggfunc='sum',
    fill_value=0
)

# Rolling window (moving average)
df['sales_ma_7d'] = df.groupby('product_id')['sales'].transform(
    lambda x: x.rolling(window=7, min_periods=1).mean()
)

# Cumulative sum
df['cumulative_sales'] = df.groupby('product_id')['sales'].cumsum()

4. Data Visualization

  • Matplotlib basics
  • Seaborn for statistical plots
  • Pandas built-in plotting
  • Customizing plots
  • Creating dashboards

Code Example:

import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns

# Set style
sns.set_style('whitegrid')

# Load data
df = pd.read_csv('sales_data.csv')

# 1. Line plot - Sales trend over time
df.groupby('month')['sales'].sum().plot(kind='line', figsize=(10, 6))
plt.title('Monthly Sales Trend')
plt.xlabel('Month')
plt.ylabel('Total Sales ($)')
plt.show()

# 2. Bar plot - Sales by category
category_sales = df.groupby('category')['sales'].sum().sort_values(ascending=False)
category_sales.plot(kind='bar', figsize=(10, 6))
plt.title('Sales by Category')
plt.xlabel('Category')
plt.ylabel('Total Sales ($)')
plt.xticks(rotation=45)
plt.show()

# 3. Histogram - Price distribution
df['price'].hist(bins=30, figsize=(10, 6))
plt.title('Price Distribution')
plt.xlabel('Price ($)')
plt.ylabel('Frequency')
plt.show()

# 4. Box plot - Salary by department
df.boxplot(column='salary', by='department', figsize=(10, 6))
plt.title('Salary Distribution by Department')
plt.suptitle('')
plt.show()

# 5. Heatmap - Correlation matrix
corr = df[['age', 'salary', 'years_experience']].corr()
sns.heatmap(corr, annot=True, cmap='coolwarm', center=0)
plt.title('Correlation Matrix')
plt.show()

Hands-On Practice

Project 1: Customer Analytics

Analyze customer purchase behavior and segmentation.

Requirements:

  • Load customer transaction data
  • Clean and prepare dataset
  • Calculate RFM (Recency, Frequency, Monetary) metrics
  • Customer segmentation
  • Visualize insights
  • Generate executive summary

Key Skills: Data cleaning, aggregation, visualization

Project 2: Time Series Analysis

Analyze sales trends and forecast future performance.

Requirements:

  • Load time series data
  • Handle missing dates
  • Calculate moving averages
  • Identify trends and seasonality
  • Detect anomalies
  • Create interactive visualizations

Key Skills: Time series operations, rolling windows, plotting

Project 3: Data Quality Report

Build automated data quality assessment tool.

Requirements:

  • Check for missing values
  • Identify duplicates
  • Detect outliers
  • Validate data types
  • Generate quality metrics
  • Export HTML report

Key Skills: Data validation, statistical analysis, reporting

Assessment Criteria

  • Load and clean real-world datasets efficiently
  • Perform complex data transformations
  • Use GroupBy for aggregations
  • Create insightful visualizations
  • Handle missing and inconsistent data
  • Optimize performance for large datasets
  • Document analysis with clear explanations

Resources

Official Documentation

Learning Platforms

Tools

Next Steps

After mastering Pandas, explore:

  • Scikit-learn - Machine learning
  • SQL - Database querying
  • Apache Spark - Big data processing
  • Tableau/Power BI - Business intelligence tools

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

30.75%
按下载量换算2,353

OpenCode

22.64%
按下载量换算1,732

Antigravity

18.1%
按下载量换算1,385

Gemini CLI

13.76%
按下载量换算1,053

Codex

8.99%
按下载量换算688

trae

4%
按下载量换算306

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源字段存在多来源差异,先按来源优先级自动处理,无法消解时进入异常复核队列。

来源信息

继续浏览同类 Skills