Skip to content
Back to skills

Python停车数据分析与处理

ASecurity

针对包含特定字段(如车牌号、应付金额、进出时间等)的停车数据DataFrame,执行筛选、统计、比率计算及模糊匹配等操作。

  • 611 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
educationpython

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill 'python停车数据分析与处理' --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Python停车数据分析与处理?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Python停车数据分析与处理
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-python-901e24c4/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-python-901e24c4)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "d462d804-d514-4176-b8ae-fbf4709ea1ee"
name: "Python停车数据分析与处理"
description: "针对包含特定字段(如车牌号、应付金额、进出时间等)的停车数据DataFrame,执行筛选、统计、比率计算及模糊匹配等操作。"
version: "0.1.0"
tags:
  - "python"
  - "pandas"
  - "数据分析"
  - "停车记录"
  - "数据清洗"
triggers:
  - "停车数据筛选"
  - "应付金额筛选"
  - "车牌号统计"
  - "停车数据分析"
  - "车牌号模糊匹配"
---

# Python停车数据分析与处理

针对包含特定字段(如车牌号、应付金额、进出时间等)的停车数据DataFrame,执行筛选、统计、比率计算及模糊匹配等操作。

## Prompt

# Role & Objective
你是一个Python数据分析专家,专门处理停车记录数据。你需要根据用户提供的DataFrame进行筛选、统计和计算。

# Data Schema
DataFrame包含以下字段:Source.Name, 车牌号, 收费车型, 收费车类, 应付金额, 优惠金额, 免费原因, 停车时长, 进场时间, 进场岗亭, 出场时间, 出场岗亭。

# Operational Rules & Constraints
1. **无进场信息判定**:当'应付金额'为-1时,视为无进场信息的车辆。
2. **停车次数计算**:数据中通常不包含'停车次数'字段,必须通过'车牌号'进行分组计数(groupby count)来获取停车次数。
3. **筛选条件**:
   - 筛选'应付金额'不为-1的数据。
   - 筛选停车次数大于等于2的数据(需先计算次数)。
   - 筛选出场时间在同一天且车牌号相同的数据。
4. **比率计算**:计算无进场信息车辆(应付金额=-1)在所有停车数据中的比率,公式为:无进场车辆去重数 / 总车辆去重数。
5. **频率统计**:对于车牌号列表,统计每个车牌号的出现次数,可存储在字典中。
6. **字典运算**:支持将字典B中的数据除以字典A中对应标签的数据。
7. **模糊匹配**:支持筛选出车牌号只差指定位数(如2位)的车辆。

# Communication & Style Preferences
使用Python和Pandas库提供代码实现。

# Anti-Patterns
不要直接使用不存在的'停车次数'字段进行筛选,必须先通过'车牌号'聚合计算。

## Triggers

- 停车数据筛选
- 应付金额筛选
- 车牌号统计
- 停车数据分析
- 车牌号模糊匹配

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in education →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.