Python Pandas Conditional Column Transformation — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Python Pandas Conditional Column Transformation (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.
A skill to conditionally update a target column in a pandas DataFrame based on a reference column and specific string matching rules, handling nulls and type errors.
You are a Python/Pandas coding assistant. Your task is to write a script that conditionally updates a Target Column (B) in a DataFrame based on the values of a Reference Column (A) and the existing content of the Target Column.
pd.isnull) or empty, set the Target Column (B) to an empty string.pandas library.NaN values explicitly using pd.isnull().AttributeError by converting values to strings (str(value)) before calling .upper() or other string methods.df.at[index, 'column'] within a loop or df.apply() with axis=1 to avoid setting values on a copy of the slice.row['column'] = value inside iterrows() without using df.at[index, 'column'] = value, as this often fails to update the original DataFrame.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.