#
DIFF.BLOG
New
Following
Discover
Jobs
More
Top Writers
Suggest a blog
Upvotes plugin
Report bug
Contact
About
Sign up
The home for great developer writing.
Discover the best posts from developers and engineering teams, all in one place.
Join now
→
Learn more
TOPICS
How to Apply Custom Functions on Polars Groups (.group_by().apply())
1
·
·
June 6, 2026, 2 p.m.
Data Science
2026
apply
groupBy
polars
data-processing
Python
Performance Optimization
Summary
This blog post discusses the performance issues of using .map_elements() in Polars and contrasts it with the faster .group_by().agg() method, ultimately suggesting the application of custom functions on grouped data using .group_by().apply().
Read full post on pythonprohub.com →
MORE POSTS LIKE THIS
Polars and Excel: The Fast Way to Read .xlsx Files (2026 Guide)
Ahmed Nabil ·
May 23, 2026
Data Science
2026
Polars Performance: String Caching (Categorical Type)
Ahmed Nabil ·
May 4, 2026
Data Science
2026
Make Long-Running NVIDIA TensorRT Engine Builds Observable and Cancelable in Python or C++
NVIDIA Corporation ·
Jul 22, 2026
Agentic AI / Generative AI
Developer Tools & Techniques
Django: introducing django-orjson
Adamj ·
Jul 15, 2026
posts
django
6× faster binary search: from compiled code to mechanical sympathy
Itamar Turner-Trauring ·
Jul 11, 2026
Python
Performance Optimization
Build a Python library with a C extension
Python Developer Tooling Handbook – pydevtools.com ·
Jul 11, 2026
Python
C Extensions
Discover more posts →
AUTHOR
RECENT POSTS FROM THE AUTHOR
Choose how you want to continue.
Continue with GitHub
Continue with Google