Skip to content

[Autoloop] [Autoloop: build-tsb-pandas-typescript-migration]#106

Closed
github-actions[bot] wants to merge 4 commits intomainfrom
autoloop/build-tsb-pandas-typescript-migration-ae9e01fd28ccdcbf
Closed

[Autoloop] [Autoloop: build-tsb-pandas-typescript-migration]#106
github-actions[bot] wants to merge 4 commits intomainfrom
autoloop/build-tsb-pandas-typescript-migration-ae9e01fd28ccdcbf

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

🤖 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-migration program. Each commit adds one pandas feature, fully tested and documented.

Latest: Iteration 194 — astype / dtype casting

  • src/core/astype.tscastScalar, astypeSeries, astypeDataFrame
  • All dtype kinds: int8/16/32/64, uint8/16/32/64, float32/64, bool, string, datetime, object
  • Per-column casting for DataFrames via Record<string, DtypeName>
  • errors: "raise" | "ignore" option
  • 50+ unit tests + property-based tests
  • Playground tutorial: playground/astype.html

Features 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

Generated by Autoloop · ● 12.1M ·

github-actions Bot and others added 4 commits April 11, 2026 12:21
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
@mrjf
Copy link
Copy Markdown
Contributor

mrjf commented Apr 17, 2026

Closing — superseded by #120 (the most complete migration PR).

@mrjf mrjf closed this Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant