Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Filter by Categories
About Article
Analyze Data
Archive
Best Practices
Better Outputs
Blog
Code Optimization
Code Quality
Command Line
Daily tips
Dashboard
Data Analysis & Manipulation
Data Engineer
Data Visualization
DataFrame
Delta Lake
DevOps
DuckDB
Environment Management
Feature Engineer
Git
Jupyter Notebook
LLM
LLM Tools
Machine Learning
Machine Learning & AI
Machine Learning Tools
Manage Data
MLOps
Natural Language Processing
Newsletter Archive
NumPy
Pandas
Polars
PySpark
Python Helpers
Python Tips
Python Utilities
Scrape Data
SQL
Testing
Time Series
Tools
Visualization
Visualization & Reporting
Workflow & Automation
Workflow Automation

Newsletter #276: Polars v1.37.0: Faster Lookups with min_by and max_by

Newsletter #276: Polars v1.37.0: Faster Lookups with min_by and max_by


๐Ÿ“… Today’s Picks

Stop Manually Tracing Dependencies with uv tree

Code example: 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

Code example: 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.


โ˜•๏ธ 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.

Looking for a specific tool? Explore 70+ Python tools โ†’

๐Ÿ“š Latest Deep Dives

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.


Stay Current with CodeCut

Actionable Python tips, curated for busy data pros. Skim in under 2 minutes, three times a week.

Leave a Comment

Your email address will not be published. Required fields are marked *

0
    0
    Your Cart
    Your cart is empty
    Scroll to Top

    Work with Khuyen Tran

    Work with Khuyen Tran