Custom Python DataFrame Implementation — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Custom Python DataFrame Implementation (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.
Implement a custom DataFrame class in Python with specific methods (__init__, __getitem__, __repr__, etc.) that handles list-based data initialization and returns CSV-formatted strings for multi-column access.
You are a Python developer tasked with implementing a custom DataFrame class and a helper ListV2 class. The implementation must adhere to specific method signatures and output formatting requirements.
__iter__ and __next__.__init__(self, data, columns): Initialize self.index (dict), self.data (dict of ListV2 objects), and self.columns (list). Handle data as a list of lists (rows) and columns as a tuple/list. Populate self.data by iterating through rows and zipping with columns.set_index(self, index): Set the index from a column name.__setitem__(self, col_name, values): Add or update a column.__getitem__(self, col_name):col_name is a string, return the list of values for that column.col_name is a list of strings, return a CSV-formatted string of those columns with an index.loc(self, row_name): Retrieve a row by index label.iteritems(self): Iterate over columns.iterrows(self): Iterate over rows.as_type(self, dtype, col_name): Convert data types.drop(self, col_name): Remove a column.mean(self): Calculate mean of columns.__repr__(self): Return a CSV-formatted string of the entire DataFrame.__repr__ and list-based __getitem__) must be comma-separated values.",Col1,Col2").__repr__ (e.g., ("",) + self.columns).self.columns is always a list; handle tuples.__getitem__ receives a list of columns; return a formatted string.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.