You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 3, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 3, 2026. It is now read-only.
π€ Autoloop β an iterative optimization agent for this repository.
Program
Goal: Build tsb, a complete TypeScript port of pandas, one feature at a time. Target files: src/**, tests/**, playground/**, and config files Metric: pandas_features_ported (higher is better) Current best: 14 (established in Iteration 13)
Change: GroupBy β DataFrameGroupBy + SeriesGroupBy with full split-apply-combine API
Iterations 1β5
Iter 5 β DataFrame (metric=6) Β· Iter 4 β οΈ Error Β· Iter 3 β Dtype+Series (metric=5) Β· Iter 2 β Dtype+Index (metric=4) Β· Iter 1 β Foundation (metric=1)
Change: Implemented Dtype system β immutable singleton descriptors for all 16 pandas dtypes with kind, itemsize, type predicates, safe casting, commonType(), and Dtype.inferFrom(). Also fixed pre-existing noUncheckedIndexedAccess errors in base-index.ts and widened Index(T) signatures.
Change: Implemented Dtype system (16 singletons with kind, itemsize, casting, inferFrom) and Series<T> (1-D labeled array with arithmetic, statistical, sorting, masking, and missing-value methods)
Notes: Previous iteration 4 (run 23970468437) implemented DataFrame but PR creation failed β this run successfully commits the same feature. Biome useLiteralKeys vs TypeScript noPropertyAccessFromIndexSignature conflict resolved via toEqual in tests. noExcessiveCognitiveComplexity addressed by extracting compareScalarPair and computeColumnStats helpers.
Change: Implemented SeriesGroupBy and DataFrameGroupBy β the split-apply-combine engine with sum, mean, min, max, count, first, last, std, agg(func|name|spec), transform, apply, getGroup, Symbol.iterator. 35+ tests + 4 property-based tests.
Metric: 7 (previous best: 6, delta: +1)
Commit: 8aa0900
Notes: GroupBy builds on top of the DataFrame implementation (iteration 5). Key design decision: group keys are Label (not Scalar) to allow clean Index construction. Multi-column keys are tab-separated composite strings. toLabel() helper safely coerces bigint/Date to strings.
Current best metric: pandas_features_ported = 7 (established in iteration 6)
Change: Add stats/factorize.ts (factorize + factorizeSeries) and reshape/wide_to_long.ts (wideToLong). Two features to recover from iter 211's lost push.
Change: Add stats/sem_var.ts (varSeries/semSeries/varDataFrame/semDataFrame) and stats/nunique.ts (nuniqueSeries/nuniqueDataFrame/anySeries/allSeries/anyDataFrame/allDataFrame)
Metric: 55 (previous best: 54, delta: +1)
Commit: bb3f8f3
Notes: Two features in one iteration recovering sem_var (lost iter 219) + adding nunique/any/all. StatFn type alias pattern for reducers. anyInSlice/allInSlice/rowValues helpers to keep DataFrame complexity β€15.
Activity
github-actions commentedon Apr 3, 2026
Warning
The
create_pull_requestoperation failed: Failed to apply patch. The code changes were not applied.Iteration 2 β 2026-04-03 19:10 UTC β Run
noUncheckedIndexedAccesserrors in base-index.ts and widened Index(T) signatures.a45d5c1github-actions commentedon Apr 4, 2026
Note
The pull request was not created β a fallback review issue was created instead due to protected file changes: #9
π€ Updated experiment log.
Iteration History
Iteration 3 β 2026-04-04 01:25 UTC β Run
Dtypesystem (16 singletons with kind, itemsize, casting,inferFrom) andSeries<T>(1-D labeled array with arithmetic, statistical, sorting, masking, and missing-value methods)36e76a5Iteration 2 β 2026-04-03 19:10 UTC β Run
Iteration 1 β 2026-04-03 16:54 UTC β Run
Current best:
pandas_features_ported= 5github-actions commentedon Apr 4, 2026
Warning
The
create_pull_requestoperation failed: Failed to apply patch. The code changes were not applied.Iteration 4 β 2026-04-04 03:55 UTC β Run
DataFrameβ column-oriented 2-D labeled table with multiple constructors, loc/iloc indexers, head/tail, assign/drop/select/rename, isna/notna/dropna/fillna, filter, aggregations (sum/mean/min/max/std/count/describe), sortValues/sortIndex, apply, iteritems/iterrows, toRecords/toDict/toArray, resetIndex/setIndex, toStringgithub-actions commentedon Apr 4, 2026
Iteration 5 β 2026-04-04 04:58 UTC β Run
DataFrameβ 2-D column-oriented labeled table.fromColumns/fromRecords/from2Dconstructors; shape/ndim/size/empty; col/get/has; head/tail/iloc/loc; assign/drop/select/rename; isna/notna/dropna/fillna; filter; sum/mean/min/max/std/count/describe; sortValues/sortIndex; apply(axis=0/1); items/iterrows; toRecords/toDict/toArray; resetIndex/setIndex; toString.useLiteralKeysvs TypeScriptnoPropertyAccessFromIndexSignatureconflict resolved viatoEqualin tests.noExcessiveCognitiveComplexityaddressed by extractingcompareScalarPairandcomputeColumnStatshelpers.github-actions commentedon Apr 4, 2026
Iteration 6 β 2026-04-04 05:20 UTC β Run
SeriesGroupByandDataFrameGroupByβ the split-apply-combine engine withsum,mean,min,max,count,first,last,std,agg(func|name|spec),transform,apply,getGroup,Symbol.iterator. 35+ tests + 4 property-based tests.Label(notScalar) to allow clean Index construction. Multi-column keys are tab-separated composite strings.toLabel()helper safely coerces bigint/Date to strings.Current best metric:
pandas_features_ported= 7 (established in iteration 6)github-actions commentedon Apr 4, 2026
Iteration 6 (run 23972003902) β 2026-04-04 05:13 UTC β Run
GroupByβDataFrameGroupBy+SeriesGroupBywith full split-apply-combine engine. All aggregations: sum, mean, min, max, count, std, first, last, size.agg()with named/fn/per-column specs.transform(),apply(),filter(),getGroup(). Multi-key groupby.DataFrame.groupby()+Series.groupby().github-actions commentedon Apr 4, 2026
Iteration 8 β 2026-04-04 06:24 UTC β Run
src/core/ops.ts(alignSeries,alignedBinaryOp,alignDataFrames,alignedDataFrameBinaryOp). UpdatedSeries._scalarOpfor index alignment. AddedDataFrame.add/sub/mul/div/floordiv/mod/pow.github-actions commentedon Apr 4, 2026
Iteration 10 β 2026-04-04 07:30 UTC β Run
merge()β database-style joins (inner/left/right/outer), on/left_on/right_on, suffixes, many-to-manygithub-actions commentedon Apr 4, 2026
Iteration 12 β 2026-04-04 08:25 UTC β Run
src/core/datetime.tsβSeries.dtDateTime accessor: year/month/day/hour/minute/second/millisecond, quarter, dayofyear, week, dayofweek (Mon=0), boundary flags (is_month_start/end, is_quarter_start/end, is_year_start/end, is_leap_year, days_in_month), strftime, date(), time(), normalize(), total_seconds(), timestamp_ms(). 78 unit tests + 6 property-based tests.[-][Autoloop] [Autoloop: build-tsb-pandas-typescript-migration] Experiment Log 2026-04[/-][+][Autoloop: build-tsb-pandas-typescript-migration] Experiment Log 2026-04[/+]github-actions commentedon Apr 4, 2026
Iteration 15 β 2026-04-04 09:52 UTC β Run
src/core/compare.tsβ element-wise eq/ne/lt/gt/le/ge for Series & DataFrame, logical and/or/xor/not, anySeries/allSeries/anyDataFrame/allDataFrame. 45 unit tests + 4 property-based tests, 100% coverage.github-actions commentedon Apr 4, 2026
Iteration 16 β 2026-04-04 10:12 UTC β Run
src/reshape/β pivot/pivotTable (longβwide with 7 aggfuncs), melt (wideβlong unpivot), stack/unstack (columnβrow collapse without MultiIndex)github-actions commentedon Apr 4, 2026
Iteration 17 β 2026-04-04 10:53 UTC β Run
src/window/β rolling (SeriesRolling/DataFrameRolling), expanding (SeriesExpanding/DataFrameExpanding), ewm (SeriesEWM/DataFrameEWM). 74 unit + 4 property-based tests.125 remaining items
github-actions commentedon Apr 11, 2026
Iteration 209 β 2026-04-11 20:25 UTC β Run
reshape/pivot_table.tsβpivotTableFullwith fullpandas.pivot_table()parity including margins=True supportgithub-actions commentedon Apr 11, 2026
Iteration 210 β 2026-04-11 20:46 UTC β Run
reshape/explode.tsβexplodeSeriesandexplodeDataFrame. Explodes list-valued cells into individual rows. Supports multi-column explosion (zip-longest), null/empty β null, scalar pass-through, ignore_index. 27 unit + property tests.github-actions commentedon Apr 11, 2026
Warning
The
push_to_pull_request_branchoperation failed: Pull request number is required but not found. The code changes were not applied.Iteration 211 β 2026-04-11 21:10 UTC β Run
stats/factorize.tsβfactorizeandfactorizeSeries. Encodes values as integer codes (0-based), returns codes + uniques. Supportssortand customnaValue.github-actions commentedon Apr 11, 2026
Iteration 212 β 2026-04-11 21:45 UTC β Run
stats/factorize.ts(factorize + factorizeSeries) andreshape/wide_to_long.ts(wideToLong). Two features to recover from iter 211's lost push.github-actions commentedon Apr 11, 2026
Iteration 213 β 2026-04-11 22:23 UTC β Run
stats/interpolate.tsβinterpolateSeriesandinterpolateDataFrame. Fills NaN/null via linear interpolation, pad/ffill, backfill/bfill, or nearest-neighbour. Supportslimit,limitDirection,limitArea. DataFrame supports axis=0 (column-wise) and axis=1 (row-wise).π€ Autoloop β automated pandasβTypeScript migration
github-actions commentedon Apr 11, 2026
Iteration 214 β 2026-04-11 22:55 UTC β Run
selectDtypesβ filter DataFrame columns by dtype with include/exclude and generic aliasesgithub-actions commentedon Apr 11, 2026
Iteration 215 β 2026-04-11 23:20 UTC β Run
stats/reduce_ops.tsβnuniqueSeries/nunique,anySeries/anyDataFrame,allSeries/allDataFramewith axis=0/1, dropna, skipna, boolOnly supportgithub-actions commentedon Apr 12, 2026
Iteration 215 -- 2026-04-11 23:30 UTC -- Run: https://github.com/githubnext/tsessebe/actions/runs/24294236300
github-actions commentedon Apr 12, 2026
Iteration 216 β 2026-04-12 00:30 UTC β Run
github-actions commentedon Apr 12, 2026
Warning
The
create_pull_requestoperation failed: Failed to apply patch. The code changes were not applied.Iteration 217 β 2026-04-12 01:20 UTC β Run
stats/mode.tsβmodeSeries/modeDataFramefor most-frequently-occurring value(s)github-actions commentedon Apr 12, 2026
Iteration 220 β 2026-04-12 05:15 UTC β Run
stats/sem_var.ts(varSeries/semSeries/varDataFrame/semDataFrame) andstats/nunique.ts(nuniqueSeries/nuniqueDataFrame/anySeries/allSeries/anyDataFrame/allDataFrame)github-actions commentedon Apr 12, 2026
Iteration 221 β 2026-04-12 05:46 UTC β Run
stats/quantile.tsβ quantileSeries/quantileDataFrame with 5 interpolation methods, multi-q, axis=0/1, numericOnly, skipnagithub-actions commentedon Apr 12, 2026
Iteration 223 β 2026-04-12 07:50 UTC β Run
stats/nancumops.tsβ 9 nan-ignoring aggregate functions: nansum/nanmean/nanmedian/nanvar/nanstd/nanmin/nanmax/nanprod/nancountreadonly Scalar[] | Series<Scalar>and skip NaN/null values.toValues()helper dispatches viaArray.isArray. 36 unit + 4 property tests. Playground: nancumops.html.github-actions commentedon Apr 12, 2026
Iteration 230 β 2026-04-12 11:15 UTC β Run
stats/date_range.tsβdateRange()mirroringpandas.date_range(). Frequencies: D/B/h/min/s/ms/W/W-DOW/MS/ME/QS/QE/YS/YE + multiplier prefix.inclusiveendpoint control.normalize=true. 60+ unit + 4 property tests. Playground: date_range.html.