Demo of narwhals.corr
β¨ New Narwhals expression: `nw.corr`
π₯ Supported in both group-by and window contexts
π Polars, DuckDB, PyArrow, PySpark, pandas...all supported
ποΈ PS. please don't draw conclusions about ice cream sales and drownings from this post
1 week ago
4
1
0
0
Bwlch Llanberis (Welsh folk tune)
Named after a scenic road in Snowdonia, this is one of my favourite Welsh melodies
1 month ago
1
0
0
0
Tafliad Carreg (Welsh folk tune)
This one was written by Mike Lease, and it means "A stone's throw"
Here's my attempt at it. First time tuning my guitar to DADGAD, and my initial impression is that standard tuning might be a mistake
1 month ago
1
0
1
0
Demo of Pyrefly LSP in Marimo notebook
β¨ @marimo.io now supports Pyrefly as an LSP, helping you to catch errors before you even execute your code!
βοΈ To enable it:
- Install pyrefly
- Settings -> User settings -> Enable pyrefly
π€Έ This was a fun one to contribute to
(π Note that the ty type checker is also supported)
2 months ago
1
0
0
0
Demo of Polars suggesting the correct time zone
β¨ New @pola.rs feature: if you misspell a time zone, it will suggest the correct one to you
π€ΈββοΈThis was a fun one to work on, Levenshtein and all!
2 months ago
2
0
0
1
Demo of pandas `min_by`
Demo of Narwhals min_by
β¨ New Polars features: `min_by` and `max_by`
π‘ Get the first (or last) value of a column ordered by another expression
ππ¦ Narwhals will have this feature too, making it available to @arrow.apache.org , pandas, @duckdb.org , and more
3 months ago
6
1
0
0
pandas 3.0 rc demo
π±π The pandas 3.0 release-candidate is here!
π₯ Will it break your code?
π‘ Test it with `uv pip install -U --pre pandas` to find out!
ππ¦ Narwhals users can relax, everything's taken care of for you, no need to do anything βΊοΈ
4 months ago
3
2
0
0
Expressions are coming to pandas!
`pd.col` will soon be a real thing!
and now we're going full-circle π labs.quansight.org/blog/pandas_...
5 months ago
2
0
1
0
Advertisement
Demo of Polars lazy pivot
β¨ The next @pola.rs release will support lazy pivot!
π‘ All you need is to specify the unique values to pivot on
5 months ago
1
0
0
0
Demo of Narwhals-daft
β¨ Narwhals now supports Daft!
πJust install the `narwhals-daft` plugin, and then `narwhals.from_native` will accept Daft DataFrame!
π‘ No extra dependencies requires, computation will remain native (and distributed, and lazy!) until you call `collect`
5 months ago
5
0
1
0
Screenshot of Wes mentioning Narwhals on a podcast
π² Wes McKinney mentioned Narwhals on a podcast
5 months ago
2
0
0
0
Demo of `list.agg` in Polars 1.35
β¨ New @pola.rs feature: `list.agg`
π‘ Compute any Expr aggregation on a list column, just use `pl.element()`
π Coming soon, in version 1.35!
5 months ago
7
0
0
0
Demo of Narwhals running with free-threaded Python
π₯§π§΅ Narwhals now tests against Python 3.14 (pi-Python!) free-threading build
π For more on free-threaded Python, my colleague Nathan's blog post is an excellent read, link in comments
6 months ago
0
0
1
0
Advertisement
Demo of narwhals.format
β¨ Narwhals now supports `format` across all backends
π§΅ Create new string columns using placeholders and expressions
ππ¦ Yet another piece of the @pola.rs API brought to pandas, @duckdb.org , PySpark, PyArrow, and more!
6 months ago
3
1
0
0
Before vs after of using MaskedArray methods in NumPy
β¨ NumPy's MaskedArray class is now type-complete
π·οΈ Enjoy improved code completion and typing!
π Thank you to Quansight Labs and Meta for having facilicated and funded the work (blog post in comments)
6 months ago
4
0
1
1
PR of Astropy using Narwhals
π The next @astropy.org release will support generic dataframe tables (like @pola.rs )
ππ¦ Powered by Narwhals
6 months ago
1
0
0
0
Demo of inlay hints with Narwhals
Enabling inlay hints in vscode
π‘ Life-pro-tip: enable inline type hints
π·οΈ Your editor will display inferred types for variables you haven't annotated
π΅οΈ Debugging those red squiggly lines will become much easier
7 months ago
5
1
1
0
polars Series implement __array__, I'd have thought that a lot of the time you can pass Series as then they'll be converted by any `np.asarray` call. at least passing Polars Series to matplotlib works like that
7 months ago
2
0
1
0
which stats packages are tied to pandas?
7 months ago
0
0
1
0
Demo of pd.col
β¨πΌ Pandas 3.0 will have `pd.col` syntax
π‘ You can use it for clean chaining in `assign` and `loc`
π It's happening, the PR just got merged!
7 months ago
4
1
0
0
Example of `.name` chaining with Polars
Example of `.name` chaining with Narwhals
β¨ New @pola.rs feature - you can now chain `name` expressions!
ππ¦ As of Narwhals 2.0 (yes, we've released 2.0 π), this feature is available there as well! Little example below with our friend @duckdb.org
8 months ago
3
0
0
0
Advertisement
temporary solution added to pandas 12 years ago
π‘ "There's nothing for permanent than a temporary fix"
Case in point, this pandas comment which was added [checks git log] ... 12 years ago π
8 months ago
2
0
0
0
"If the U.S. can't get its greenhouse emissions under control, they need to face real consequences" said the rest of the world.
8 months ago
489
151
22
3
Screenshot of 17-year-old commit message in NumPy
π‘ Today in open source: a 17-year-old NumPy commit promising that a new feature will be coming soon
Any day now..
8 months ago
0
0
0
0
gt-extras demo
π @posit.co have done it again
π§ gt-extras offers even more functionality for their table renditions of @pola.rs and pandas dataframes!
ππ¦ Using Narwhals for some dataframe logic
8 months ago
9
1
0
0