pandas-patterns — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited pandas-patterns (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.
Most pandas pain comes from three things: chained indexing, row-wise apply, and ignoring dtypes/memory. This skill encodes the idioms that keep pandas correct and fast.
SettingWithCopyWarning. df.loc[df["age"] > 30, "segment"] = "senior" # correct
# df[df["age"] > 30]["segment"] = "senior" # WRONG: SettingWithCopyWarning, no-op risk df["bmi"] = df["weight"] / df["height"] ** 2 # fast
# df.apply(lambda r: r.weight / r.height**2, axis=1) # 100x slower import numpy as np
df["tier"] = np.select(
[df.spend > 1000, df.spend > 100],
["gold", "silver"],
default="bronze",
)category for low-cardinality strings, int32/float32 where safe. df["country"] = df["country"].astype("category") df = orders.merge(users, on="user_id", how="left", validate="m:1")df.groupby(..., observed=True).agg(...) — observed=True avoids exploding categorical combinations.pd.eval / df.query() for large boolean filters.chunksize=) or switch to Polars/DuckDB when pandas is the bottleneck.df.pipe(fn) to compose transformations without intermediate variables.result = (
df
.query("status == 'active'")
.assign(revenue=lambda d: d.qty * d.price)
.groupby("region", observed=True)
.agg(total=("revenue", "sum"))
.reset_index()
)itertuples.Int64 if you must keep integers.Clean, vectorized transformations that downstream skills (feature-engineering, model-evaluation) can run quickly on full datasets.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.