pypi narwhals 1.46.0
Narwhals v1.46.0

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

Changes

🚀 Performance improvements

  • refactor: Cache, reuse Implementation._backend_version (#2764)

✨ Enhancements

  • enh!: simplify exceptions, consistently raise InvalidOperationError instead of ShapeError/OrderDependentExprError/LengthChangingExprError (#2752)
  • feat: Add Expr.dt.offset_by() (#2733)
  • enh: allow for over(order_by=...) for rank (#2746)
  • fix: Respect session time zone when casting to Datetime for PySpark (#2780)
  • enh: Support casting to Duration, and Datetime with different units, for DuckDB (#2782)
  • feat: Add support for quantile and ewm_mean in over context (#2774)
  • feat: Support DataFrame().lazy("ibis") (#2771)

🛠️ Other improvements

  • ci(ruff): Autofix "utf-8" encoding for windows (#2770)
  • chore: xfail cudf offset_by (#2797)
  • ci: cudf tests fixup (#2795)
  • chore: use descending and nulls_last for duckdb window_expression (#2791)
  • ci: unxfail truncate tests for pyspark by checking local results (#2794)
  • chore: fixup error message for duckdb nightly (#2792)
  • chore: clean assorted (#2787)
  • chore: use _with_elementwise more for DuckDB/spark-like (#2784)
  • fix: type annotation default for named: Literal[False] was missing in DataFrame.iter_rows (#2778)
  • refactor: Cache, reuse Implementation._backend_version (#2764)
  • ci: remove sqlglot pin, pin chatlas (#2777)
  • chore: Re-sync _compliant exports (#2773)
  • refactor: Move _reuse_series to EagerExpr whenever possible (#2765)

Thank you to all our contributors for making this release possible!
@FBruzzesi, @MarcoGorelli, @dangotbanned, @dependabot[bot], @raisadz and dependabot[bot]

Don't miss a new narwhals release

NewReleases is sending notifications on new releases.