Agent skill · Audited from source
Pivot Table Analysis
skill · OpenSenseNova/SenseNova-SkillsMIT licenceAudited 7 Oct 2026 · source 657860e4d389
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit 657860e4d389 and found no filesystem, network or shell access and no hard-coded secrets. What it does: 利用交叉表与热力图对分类数据进行多维度占比分析,适用于奖项分布、绩效评估或市场占有率等结构化数据的清洗与可视化。
Cite
Cite this page
ModelsAtlas. “Pivot Table Analysis (OpenSenseNova/SenseNova-Skills)”. Retrieved 7 Oct 2026. https://modelsatlas.com/skills/opensensenova/pivot-table-analysis
Trust audit
Audit 0.4.1 · source read 7 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | NA | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (0)
No findings at any severity. We re-audit when the source changes.
Audit 0.4.1 · source sha 657860e4d389 · 7 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- PublisherOpenSenseNova GitHub organizationOwner of the repository this skill is read from
- Source folderOpenSenseNova/SenseNova-Skills/skills/sn-da-excel-workflow/capability/excel-data-analysis/pivot-table-analysisThe exact folder we audited
- LicenceMITAs the repository states it
- Commit pinned for this verdict657860e4d389A new audit runs when the source changes
- Repository statusNot archivedLast push 19 days ago
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: 利用交叉表与热力图对分类数据进行多维度占比分析,适用于奖项分布、绩效评估或市场占有率等结构化数据的清洗与可视化。
---
name: pivot-table-cross-analysis
description: "利用交叉表与热力图对分类数据进行多维度占比分析,适用于奖项分布、绩效评估或市场占有率等结构化数据的清洗与可视化。"
---
Step1 对原始数据进行清洗与重构,处理 Excel 合并单元格导致的缺失值,并筛选核心分析列。
```python
import pandas as pd
def preprocess_pivot_data(file_path, target_cols=['奖项', '项目名称', '成员', '单位']):
"""
清理并重构数据列,处理合并单元格填充。
"""
df = pd.read_excel(file_path)
# 映射通用列名
df.columns = target_cols
# 关键技巧:处理合并单元格。ffill 前需确保数据按原始分类顺序排列
# 假设第一列为分类标签(如奖项名称)
df[target_cols[0]] = df[target_cols[0]].fillna(method='ffill')
# 删除关键信息(如成员或单位)缺失的无效行
df = df.dropna(subset=[target_cols[2], target_cols[3]])
# 清洗字符串空格
for col in df.select_dtypes(['object']).columns:
df[col] = df[col].str.strip()
return df
```
Step2 构建交叉分析表(Crosstab),计算不同维度下的频数分布及百分比占比。
```python
def create_cross_analysis(df, index_col='单位', columns_col='奖项'):
"""
构建交叉表并计算各分类维度的获奖/分布比例。
"""
# 生成频数统计交叉表
cross_table = pd.crosstab(df[index_col], df[columns_col])
# 计算占比:各列(奖项)下各行(单位)的分布比例
# div(axis=1) 表示按列求和后进行除法
award_proportions = cross_table.div(cross_table.sum(axis=0), axis=1) * 100
# 技巧:生成带有总计行和占比的汇总表
summary = cross_table.copy()
summary['总计'] = summary.sum(axis=1)
summary.loc['合计'] = summary.sum()
return cross_table, award_proportions, summary
```
Step3 配置中文字体并生成热力图可视化,直观展示各维度间的分布差异。
```python
import matplotlib.pyplot as plt
import seaborn as sns
def generate_analysis_heatmap(proportions, output_path='analysis_heatmap.png'):
"""
生成高分辨率热力图,支持中文字体显示。
"""
# 关键技巧:中文字体配置,兼容不同系统环境
plt.rcParams['font.sans-serif'] = ['SimHei', 'WenQuanYi Zen Hei', 'DejaVu Sans']
plt.rcParams['axes.unicode_minus'] = False
plt.figure(figsize=(14, 10))
# 使用 Seaborn 绘制热力图,fmt='.2f' 保留两位小数
sns.heatmap(
proportions,
annot=True,
fmt='.2f',
cmap='YlGnBu',
linewidths=.5,
cbar_kws={'label': '占比 (%)'}
)
plt.title('多维度分类占比分布热力图', fontsize=15, pad=20)
plt.xlabel('分类维度 (Columns)', fontsize=12)
plt.ylabel('分析对象 (Index)', fontsize=12)
# 自动调整布局防止标签裁剪
plt.tight_layout()
plt.savefig(output_path, dpi=300, bbox_inches='tight')
plt.close()
```
Step4 执行综合分析算法,提取各维度的 Top-N 表现对象并计算整体排名。
```python
def extract_performance_insights(proportions, top_n=3):
"""
分析各奖项/分类下的领先者,并计算整体加权表现。
"""
insights = {}
# 1. 提取每个分类维度的前 N 名
top_performers = {}
for category in proportions.columns:
top_list = proportions[category].sort_values(ascending=False).head(top_n)
top_performers[category] = top_list.to_dict()
# 2. 计算整体表现排名(基于所有维度的平均占比)
overall_performance = proportions.mean(axis=1).sort_values(ascending=False)
insights['top_by_category'] = top_performers
insights['overall_ranking'] = overall_performance.head(10).to_dict()
return insights
```
Step5 导出分析结果为 Excel 多工作表格式,并提供下载链接。
```python
from IPython.display import FileLink
def export_results(cross_table, proportions, insights_df, file_name='analysis_report.xlsx'):
"""
将分析结果保存至 Excel 并在环境中生成下载链接。
"""
with pd.ExcelWriter(file_name) as writer:
cross_table.to_excel(writer, sheet_name='频数统计')
proportions.to_excel(writer, sheet_name='占比分析')
insights_df.to_excel(writer, sheet_name='综合排名')
return FileLink(file_name)
```Excerpt, first 3,399 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit 657860e
git clone https://github.com/OpenSenseNova/SenseNova-Skills git -C SenseNova-Skills checkout 657860e4d389
The author documents no install command, so this uses the repository directly. Our verdict covers commit 657860e4d389 only.
Works in
The author has not said which agents this skill supports, and we have not tested it in any.
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
657860e4d389
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/opensensenova/pivot-table-analysis/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
All data & analysis skills →OpenSenseNova/SenseNova-Skills
读取多工作表Excel文件,自动处理合并单元格与数据清洗,进行交叉分组统计并生成带总计行的结果表,最后绘制支持中英文字体的美化柱状图,适用于多维度数据汇总与可视化分析。
OpenSenseNova/SenseNova-Skills
对多Sheet Excel文件进行基础统计与,支持按条件筛选计算均值,以及从指定行区间提取数据去重求和,并生成结果文件与下载链接。
OpenSenseNova/SenseNova-Skills
当Excel文件总行数超过1万行时,通过转换为Parquet格式提升读取性能,提取目标指标并计算最大值,最后将结果输出为Excel并对特定行进行高亮标注。
OpenSenseNova/SenseNova-Skills
对Excel数据进行自定义分类统计、交叉分析与可视化,并基于多维度指标(如文本长度、术语密度、正则匹配等)进行综合评分与分级,适用于多类别数据分布统计及文本内容难度/质量评估场景。
OpenSenseNova/SenseNova-Skills
提取指定类别列并统计各类别数量与占比,生成高分辨率的柱状图、饼图等组合可视化报告,适用于分类数据的分布情况分析。
OpenSenseNova/SenseNova-Skills
从结构化数据中提取分类分布执行清洗与统计,生成多维度交叉分析、高分辨率对比图表及包含下载链接的完整分析报告,适用于大文件处理与嵌入式可视化场景。
Add this badge to your README
[](https://modelsatlas.com/skills/opensensenova/pivot-table-analysis/)
<a href="https://modelsatlas.com/skills/opensensenova/pivot-table-analysis/"><img src="https://modelsatlas.com/skills/opensensenova/pivot-table-analysis/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about Pivot Table Analysis
What does the Pivot Table Analysis skill do?
Is Pivot Table Analysis safe to install?
What can Pivot Table Analysis access on my machine?
How current is this page?
Sources
- github.com/OpenSenseNova/SenseNova-Skills/tree/main/skills/sn-da — the audited source at commit 657860e4d389 and every finding aboveObserved · 7 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Pivot Table Analysis skill do?
- Is Pivot Table Analysis safe to install?
- What can Pivot Table Analysis access on my machine?