[Autoloop: build-tsb-pandas-typescript-migration]#264
[Autoloop: build-tsb-pandas-typescript-migration]#264github-actions[bot] wants to merge 12 commits intomainfrom
Conversation
Run: https://github.com/githubnext/tsessebe/actions/runs/25239808128 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Import window classes/types from ../window index instead of internal files - Fix useLiteralKeys: use dot notation instead of string literal keys - Fix formatting of itertuples method signature Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Commit pushed:
|
Evergreen Fix Applied ✅Fixed failing CI lint checks in
Commit:
|
…tructure Replace legacy inline-script playground with standardized structure: - Add playground-runtime.js script reference - Add #playground-loading overlay - Use .playground-block / .playground-editor / .playground-run / .playground-output classes Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Commit pushed:
|
|
Evergreen fix applied 🌲 Issue: 6 failing Root cause:
Fix: Rewrote the file to match the standardized playground structure used by all other pages (e.g., All 10 conformance checks now pass locally.
|
Implements `Grouper` class and `isGrouper` type-guard, mirroring `pandas.Grouper`. Supports key, freq, level, sort, dropna, closed, and label options with isKeyGrouper/isFreqGrouper/isLevelGrouper helpers plus a descriptive toString(). Run: https://github.com/githubnext/tsessebe/actions/runs/25258809663 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…dexer, VariableOffsetWindowIndexer) Run: https://github.com/githubnext/tsessebe/actions/runs/25279200195 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…tArray - Extend Series.map() to accept Record<string,U>, Series<U>, Map<Scalar,U> in addition to the existing function overload, mirroring pandas.Series.map() - Add naAction:'ignore' option to pass NA values through unchanged - Add hashBijectArray() and hashBijectInverse() mirroring pd.util.hash_biject_array - 32 tests covering all map overloads + naAction + bijection invariants - Playground page: playground/series-map.html Run: https://github.com/githubnext/tsessebe/actions/runs/25306204417 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
@copilot fix tests |
…conform to standard structure Agent-Logs-Url: https://github.com/githubnext/tsessebe/sessions/49da6a4f-4db9-4bb4-ba4c-673a113883be Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>
Fixed in d61ff93. Three playground pages were failing conformance tests because they used a legacy/non-standard structure:
All three have been rewritten to use the standard |
🤖 This PR is maintained by Autoloop. Each accepted iteration adds a commit to this branch.
Program Goal
Build
tsb— a complete TypeScript port of pandas, one feature at a time.Program Issue: #1 | Current Best Metric: 138
pandas_features_portedLatest Iteration (299)
Added three utility/iteration features from the Future Directions:
hashArray(src/stats/hash_array.ts) — element-wise FNV-1a 64-bit hashing of scalar arrays, mirrorspandas.util.hash_array. Exported fromtsb.Series.items()/Series.iteritems()— lazy generator yielding(label, value)pairs, mirrorspandas.Series.items()/iteritems().DataFrame.itertuples()— iterate rows as plain objects{ Index: label, col1: val, ... }, mirrorspandas.DataFrame.itertuples().Full test coverage (18 new tests) and a playground page (
playground/hash_array_itertuples.html).Metric: 138 (↑+1 from 137 on main)