[Autoloop] [Autoloop: build-tsb-pandas-typescript-migration]#106
Closed
github-actions[bot] wants to merge 4 commits intomainfrom
Closed
[Autoloop] [Autoloop: build-tsb-pandas-typescript-migration]#106github-actions[bot] wants to merge 4 commits intomainfrom
github-actions[bot] wants to merge 4 commits intomainfrom
Conversation
Implements pandas missing-value utilities as standalone exported functions: - `isna` / `notna` / `isnull` / `notnull` — detect missing values in scalars, Series, and DataFrames (mirrors pd.isna / pd.notna) - `ffillSeries` / `bfillSeries` — forward/backward fill for Series with optional `limit` parameter - `dataFrameFfill` / `dataFrameBfill` — column-wise or row-wise fill for DataFrames with optional `limit` and `axis` parameters Metric: 28 → 29 pandas_features_ported Run: https://github.com/githubnext/tsessebe/actions/runs/24263385922 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Implements pctChangeSeries() and pctChangeDataFrame() mirroring pandas.Series.pct_change() / pandas.DataFrame.pct_change(). - periods: configurable lag (positive = backward, negative = forward) - fillMethod: "pad" (default), "bfill", or null (no fill) - limit: cap consecutive fills - axis: column-wise (default) or row-wise for DataFrame Full test coverage: unit tests, edge cases, and fast-check property tests. Interactive playground page at playground/pct_change.html. Run: https://github.com/githubnext/tsessebe/actions/runs/24266545401
Run: https://github.com/githubnext/tsessebe/actions/runs/24281202174 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Run: https://github.com/githubnext/tsessebe/actions/runs/24281714272 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
|
Closing — superseded by #120 (the most complete migration PR). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 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, built from first principles.Metric:
pandas_features_ported(higher is better)Current best: 32 (as of iteration 194)
Summary
This PR accumulates all accepted iterations for the
build-tsb-pandas-typescript-migrationprogram. Each commit adds one pandas feature, fully tested and documented.Latest: Iteration 194 — astype / dtype casting
src/core/astype.ts—castScalar,astypeSeries,astypeDataFrameRecord<string, DtypeName>errors: "raise" | "ignore"optionplayground/astype.htmlFeatures Ported So Far (32)
Core: dtype, series, frame, base-index, range-index, multi_index, string_accessor, datetime_accessor, cat_accessor
IO: csv, json
Merge: concat, merge
Reshape: melt, pivot, stack_unstack
Stats: corr, cum_ops, describe, elem_ops, idxmin_idxmax, na_ops, nlargest, pct_change, rank, value_counts
Window: ewm, expanding, rolling
Groupby: groupby
Core (new): astype
Experiment Log: #104