Polars v1.37.0: Faster Lookups with min_by and max_by
Plus visualize Python dependencies with uv tree
Hi there, here are the top stories of the week. Enjoy!
Stop Manually Tracing Dependencies with uv tree
Problem
Debugging version conflicts requires knowing which packages depend on what. But tracing these relationships manually through nested dependencies is tedious.
Solution
uv tree handles this automatically, displaying the full dependency graph so you can trace any package back to its source.
Key capabilities:
Complete dependency visualization
Flag dependencies with available updates
Find which packages depend on a specific library
Filter the tree to show only a specific package’s dependencies
Polars v1.37.0: Faster Lookups with min_by and max_by
Problem
Finding the row with the minimum or maximum value based on another column requires sorting, grouping, or complex filter expressions.
Solution
Polars v1.37.0 adds min_by and max_by expression methods. These methods find minimum or maximum values based on any column in a single, readable expression.
→ Run code
Weekly Finds
lmql [LLM] - A programming language for constraint-guided and efficient LLM programming based on a superset of Python.
helicone [MLOps] - Open-source LLM observability platform with one-line integration for monitoring, analytics, and management.
responses [Python Utils] - A utility library for mocking out the Python Requests library in tests.
New Articles
What’s New in pandas 3.0: Expressions, Copy-on-Write, and Faster Strings - Learn what’s new in pandas 3.0: pd.col expressions for cleaner code, Copy-on-Write for predictable behavior, and PyArrow-backed strings for 5-10x faster operations.
Explore More on CodeCut
Tool Selector - Discover 70+ Python tools for AI and data science
Production Ready Data Science - A practical book for taking projects from prototype to production
Enjoying this newsletter?
Share with someone building AI and data science projects with open-source tools
Hit the heart button to help others discover this


