Skip to content

v0.58.0 - DataFrame column/row drop methods and documentation improvements (2026-03-29)

What Changed?

This release adds dropColumns and dropRows methods to BareFrame, making it explicit whether you are removing columns or rows. The existing drop method is now an alias for dropColumns. Documentation for the comparison page was also significantly improved.


What's New

Main Feature: dropColumns and dropRows

What it does: Provides explicit methods for removing columns or rows from a BareFrame. dropColumns removes the specified columns by name; dropRows removes the specified rows by 0-based index.

How to use it:

JavaScript
const df = gaslamp.BareFrame.fromColumns({
  name: ["Alice", "Bob", "Carol"],
  age:  [25, 30, 28],
  city: ["Tokyo", "Osaka", "Fukuoka"],
});

// Remove a column
const noAge = df.dropColumns(["age"]);
// name | city

// Remove rows by index
const noFirst = df.dropRows([0]);
// name  | age | city
// Bob   | 30  | Osaka
// Carol | 28  | Fukuoka

Added

  • BareFrame.dropColumns(headers) — removes specified columns by name
  • BareFrame.dropRows(indices) — removes specified rows by 0-based index

Changed

  • BareFrame.drop is now an alias for dropColumns
  • docs/guides/comparison.md — restructured comparison page: transposed all tables, split danfo.js and arquero into separate columns, added method name samples, removed pandas/polars from non-relevant sections
  • docs/index.md, README.md, package.json, pyproject.toml — synchronized tagline across all entry points

Fixed

  • FlameFrame.from now throws a descriptive TypeError when the first argument is not a BareFrame

Is It Safe to Upgrade?

  • Breaking Changes: No
  • Backward Compatible: Yes

drop continues to work as before. dropColumns and dropRows are new additions.


Release Details

  • Date: 2026-03-29
  • Version: v0.58.0
  • gaslamp: 117
  • pilotlamp: 75
  • Commits:
    • f4fb4a59 refactor(frame): make drop an alias for dropColumns
    • 739a30b3 feat(frame): add dropColumns and dropRows methods to BareFrame
    • 521d1019 docs: sync tagline across docs/index.md, package.json, and pyproject.toml
    • 9f98806a docs(guides): update DataFrame API table with method names
    • 1bd600cb docs(guides): split danfo.js and arquero into separate columns
    • 6810860c docs(guides): add Quick Comparison heading and fix grammar
    • 72a0a795 fix(torch): add runtime type guard to FlameFrame.from

Known Issues

  • transpose method is not yet implemented (design under discussion)

Next Steps

  • Add transpose method to BareFrame
  • Consider drop as a dispatcher for both column and row removal