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 #306: TimescaleDB: Turn PostgreSQL into a Time-Series Engine with One Extension

Newsletter #306: TimescaleDB: Turn PostgreSQL into a Time-Series Engine with One Extension

Grab your coffee. Here are this week’s highlights.


📅 Today’s Picks

TimescaleDB: Turn PostgreSQL into a Time-Series Engine with One Extension (Sponsored)

Code example: TimescaleDB: Turn PostgreSQL into a Time-Series Engine with One Extension

Problem

In standard PostgreSQL, all rows live in one table. As time-series data grows into the millions, queries cannot skip irrelevant data, so even recent lookups scan far more than needed.

Solution

TimescaleDB solves this with hypertables, which automatically partition data into time-based chunks.

Queries only touch the relevant chunks, leaving the rest untouched.

Other capabilities:

  • Shrink storage by up to 95% with columnar compression that stays fully queryable
  • Faster queries with continuous aggregates that refresh only new data
  • Built-in retention policies to automatically remove old data

Guidance: One Function for Clean LLM Labels

Code example: Guidance: One Function for Clean LLM Labels

Problem

Classification tasks with LLMs can get messy. Instead of a clean label, you might get “Option A”, “The answer is A”, or a full explanation.

Cleaning this up requires extra parsing, retries, and validation that can make your system fragile.

Solution

With Guidance, the select() function constrains the model to return exactly one option from your list.

Key benefits:

  • Guarantees output matches one of your predefined options
  • Eliminate parsing code and regex patterns
  • Works with any list of valid choices

☕️ Weekly Finds

TimesFM [ML] – Pretrained time-series foundation model by Google Research for zero-shot forecasting

timesketch [Data Processing] – Collaborative forensic timeline analysis tool

Orbit [ML] – Bayesian time series forecasting with an intuitive initialize-fit-predict interface

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 *

Scroll to Top

Work with Khuyen Tran

Work with Khuyen Tran