Skip to content

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

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

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

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, one feature at a time.

Current Best Metric

32 pandas_features_ported (higher is better)

Recent Iteration: #194 — astype

Added src/core/astype.ts — dtype coercion for Series and DataFrame:

  • astypeSeries(series, dtype) — cast all values in a Series to the target dtype
  • astype(df, dtype | mapping) — cast all or individual columns in a DataFrame
  • castScalar(v, dtype) — low-level scalar cast
  • Integer overflow clamped to dtype range
  • 40+ tests including property-based tests with fast-check
  • Interactive playground: playground/astype.html

🤖 This PR is maintained by Autoloop.

Generated by Autoloop · ● 6.9M ·

github-actions Bot and others added 4 commits April 11, 2026 12:30
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