pypi narwhals 1.33.0
Narwhals v1.33.0

latest releases: 2.14.0, 2.13.0, 2.12.0...
8 months ago

Changes

🚀 Performance improvements

  • perf: Avoid unnecessary calls in Expr.clip method (#2303)

✨ Enhancements

  • fix: change rank ExprKind to transform (#2316)
  • feat: add rank for Lazy backends (#2310)
  • feat: disallow .over(order_by=...) for non-order-dependent operations (as it signals a user error) (#2314)
  • feat: add rolling_var and rolling_std for lazy backends (#2299)
  • feat: Allow spark-like backends in scan_csv function (#2300)
  • feat: Add DuckDBExpr.is_unique() method (#2301)
  • feat: add rolling mean for lazy backends (#2297)
  • feat(sqlframe): Allow options in scan_parquet function (#2295)
  • feat: Add DataFrame.clone for pyarrow (#2288)
  • feat: add cum_count and cum_prod to PySpark and DuckDB (#2286)
  • feat: Add cum max and cum_min for DuckDB (#2278)

🐞 Bug fixes

  • fix: Expr.mode broadcasting (#2280)
  • ci: Remove sqlframe pin from --group typing (#2298)
  • fix: use specialised duckdb functions for std_pop/std_samp/var_pop/var_samp (#2289)
  • fix: fixup polars join version check throwing unnecessary deprecation warning for outer join (#2287)

📖 Documentation

  • docs: Expand contributing guidelines (#2309)

🛠️ Other improvements

  • test: add test for shift->cum_sum (#2317)
  • ci: fixup cudf test failures, support rolling_std/rolling_var/rolling_mean for pandas in grouped context (#2322)
  • chore: Make duckdb quack more like polars (#2321)
  • chore: use Python API more in DuckDB (#2318)
  • refactor: Add CompliantDataFrame.from_arrow (#2306)
  • chore(typing): Resolve _polars.utils dtype ignores (#2312)
  • chore: Tidy up PolarsExpr (#2313)
  • refactor: Add LazyExprNameNamespace (#2311)
  • refactor: Add CompliantDataFrame.from_dict (#2304)
  • refactor: Use ._with_* for internal API methods (#2305)
  • chore: Add EagerSeries*Namespace protocols (#2294)
  • refactor: Use .from_iterable() in new_series (#2302)
  • refactor: *(Namespace|DataFrame).from_numpy (#2283)
  • chore: Update ._native_series refs (#2293)
  • test: ensure expected data has every column of theresult data (#2296)
  • ci: fixup for duckdb pre 1.3 (#2292)
  • chore: Update ._native_frame refs (#2290)
  • chore: always set CompliantExpr._metadata (#2282)

Thank you to all our contributors for making this release possible!
@EdAbati, @FBruzzesi, @MarcoGorelli, @dangotbanned and @raisadz

Don't miss a new narwhals release

NewReleases is sending notifications on new releases.