PR of Astropy using Narwhals
π The next @astropy.org release will support generic dataframe tables (like @pola.rs )
ππ¦ Powered by Narwhals
@marcogorelli.bsky.social
Senior Software Engineer at Quansight Labs Pretty focused on Narwhals and Polars these days, generally interested in dataframes and time series
PR of Astropy using Narwhals
π The next @astropy.org release will support generic dataframe tables (like @pola.rs )
ππ¦ Powered by Narwhals
oh no!!! π
18.09.2025 09:40 β π 0 π 0 π¬ 0 π 0Demo 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
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
23.08.2025 17:46 β π 2 π 0 π¬ 1 π 0which stats packages are tied to pandas?
23.08.2025 15:39 β π 0 π 0 π¬ 1 π 0Demo 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!
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
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 π
"If the U.S. can't get its greenhouse emissions under control, they need to face real consequences" said the rest of the world.
07.08.2025 19:57 β π 492 π 152 π¬ 23 π 3Screenshot 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..
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
solarized light
20.07.2025 13:26 β π 1 π 0 π¬ 0 π 0Meme of panicked Astronomer CEO caught on cam with the head of HR, with "When you find a new data science library" and "When you realise it only supports pandas" text overlaid
π‘ Solution: use Narwhals for universal dataframe support ππ¦
18.07.2025 10:56 β π 4 π 0 π¬ 0 π 0Demo of Formulaic with native Polars support
β¨ New Formulaic release (1.2), featuring native support for @pola.rs !
ππ¦ Powered by Narwhals
π’ When the Q&A goes off-script π€£
π―π΅ Japanese math rock, π
ΏοΈ porpoises and unfortunate aliases, and π€ Taylor Swift:
π₯All of these unexpectedly came up in this fun session, which is currently the 2nd most viewed of the conference
π Thanks @pydatalondon.bsky.social for inviting me!
MLFlow maintainer announcing that they merged the Polars dataset PR
π₯³ The next version of @mlflow.org will support @pola.rs !
π© Slightly disappointingly, they do so by converting to pandas
ππ¦ Could Narwhals help make MLFlow gain native support for Polars? Link to the discussion below π
sure - how do you know
21.06.2025 13:40 β π 1 π 0 π¬ 2 π 0PR which added Ibis support to Narwhals
Demo of Ibis via Narwhals
π It's scary to merge a 2,000+ line PR!
π But, this one was so thorough that we just had to ship it
π Thanks to an incredible effort by Ryan Whitten, Narwhals supports Ibis!
π‘You can now use Narwhals with all of Ibis' backends, plus some extra, whilst keeping @pola.rs expressive API!
Demo of `list.filter` in Polars
β¨ @pola.rs now supports `list.filter`
πͺ The `list` namespace is now even more turbocharged β‘
π Full release notes for 1.30
sometimes that's all you need π
26.05.2025 19:17 β π 1 π 0 π¬ 1 π 0Example of using PySpark via Narwhals
β¨ PySpark 4.0 is out
ππ¦ And it's already supported by Narwhals, including PySpark connect (thanks Francesco Bruzzesi!)
Looks like a good decision, given she committed fraud
26.05.2025 09:57 β π 0 π 0 π¬ 0 π 0ππ Narwhals: github.com/narwhals-dev...
π Narwhals and SQL: narwhals-dev.github.io/narwhals/gen...
Demo of forward-fill with Narwhals
Forward-fill as DuckDB SQL
β¨ Narwhals now supports `fill_null` with forwards and backwards strategies
π¬ Here's a demo of a fill-forward function which supports PySpark, @pola.rs , @duckdb.org , pandas, cuDF, and more!
π Bonus: curious about what this looks like as DuckDB SQL? We got you covered π
Demo of Narwhals dataframe-agnostic function which supports PySpark
Plot of PySpark dataframe after converting it to PyArrow
SQL generation from Polars syntax
β¨ Narwhals now supports PySpark
π If you have a dataframe-agnostic function, you can pass in `pyspark.sql.DataFrame`
π Here's a demo, made with @marimo.io
π BONUS feature: combine with SQLFrame, to generate SQL from @pola.rs syntax πͺ
Narwhals tests in cuDF's CI
π οΈ NVIDIA's cuDF library now runs the Narwhals test suite as part of its CI process
π
in netherlands?
02.05.2025 15:49 β π 0 π 0 π¬ 1 π 0I still name my Marimo notebooks `untitled42.py` π
30.04.2025 11:57 β π 1 π 0 π¬ 0 π 0