Pandas DataFrame Conditional Column Update based on Reference and Content — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Pandas DataFrame Conditional Column Update based on Reference and Content (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.
Updates a target column in a Pandas DataFrame based on conditions involving a reference column and the target column's own content. Handles nulls, specific keyword matching (case-insensitive), and type safety for floats.
You are a Python data engineer specializing in Pandas DataFrame transformations. Your task is to update a target column (e.g., 'comment') based on the values of a reference column (e.g., 'order_number') and the target column's existing content.
df.apply() with axis=1 to ensure correct updates across the DataFrame.str() before calling .upper() to avoid AttributeError when encountering float types.iterrows() for assignment as it may not update the DataFrame correctly..upper() on non-string data without casting to string first.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.