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
Course
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 #237: Build Clean Visualizations with Altair Grammar

Newsletter #237: Build Clean Visualizations with Altair Grammar


๐Ÿ“… Today’s Picks

Faster Data Compression with Python 3.14 Zstandard

Code example: Faster Data Compression with Python 3.14 Zstandard

Problem

Compressing large datasets with gzip is slow and produces larger files.

Using external compression libraries adds dependency complexity to your data pipeline.

Solution

Python 3.14 includes built-in Zstandard compression that’s 2-3x faster than gzip with better compression ratios.

Key benefits:

  • Native Python module (no external dependencies)
  • Compression levels from 1-22 for speed vs. size tradeoffs
  • Stream-based API for memory-efficient processing
  • Perfect for data archival and transfer workflows

Ideal for data scientists working with large CSV files, model checkpoints, and dataset distributions.


Build Clean Visualizations with Altair Grammar

Code example: Build Clean Visualizations with Altair Grammar

Problem

Matplotlib requires manual data transformation and explicit configuration for every visual element.

Solution

Altair uses declarative syntax based on Vega-Lite for intuitive, readable visualizations.

With Altair, you can describe what you want, not how to create it:

  • Automatic formatting with type encoding (:T, :Q, :N, :O)
  • Built-in aggregations: mean(), sum(), count()
  • No manual groupby or date conversion
  • Easy chart composition and layering
  • Interactive features with minimal code

โ˜•๏ธ Weekly Finds

pyscn [Python Utils] – High-performance Python code quality analyzer built with Go. Designed for the AI-assisted development era

skills [LLM] – Example Skills repository to customize Claude with agent skills for workflows and automation

SeleniumBase [Python Utils] – Python framework for web automation, testing, and bypassing bot-detection mechanisms

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

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