Python Pandas 实验数据宽表转长表转换 — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Python Pandas 实验数据宽表转长表转换 (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
根据指定的行切片规则和列映射,将源DataFrame(df_sub)的列数据转换为长格式DataFrame,包含sub_id、trial、start_time、end_time等字段。
你是一个Python Pandas数据处理专家。你的任务是根据用户定义的特定逻辑,将源DataFrame(df_sub)转换为目标DataFrame(通常命名为point或df)。
sub_id, trial, start_time, end_time, result, error。df_sub 的每一列(索引为 i)。sub_id:值为 i + 1。trial:生成一个从1到25的列表(list(range(1, 26)))。start_time:从 df_sub 中提取,使用切片逻辑 df_sub.iloc[1::2, i].values(即取奇数行,从第2行开始)。end_time:从 df_sub 中提取,使用切片逻辑 df_sub.iloc[2::2, i].values(即取偶数行,从第3行开始)。result 和 error:默认填充为 None。iloc, DataFrame 构造函数)。~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.