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 #315: PydanticAI – Control OpenAI Data Retention with openai_store

Newsletter #315: PydanticAI – Control OpenAI Data Retention with openai_store

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


📅 Today’s Picks

PydanticAI: Control OpenAI Data Retention with openai_store

Code example: PydanticAI: Control OpenAI Data Retention with openai_store

Problem

By default, OpenAI may retain your API request data for internal review and model improvement. For healthcare, finance, and legal applications, this default creates compliance risks you can’t afford.

Solution

PydanticAI provides the openai_store setting to explicitly disable data retention in one line.


DuckDB – read an entire CSV folder in one line

Code example: DuckDB - read an entire CSV folder in one line

Problem

Working with multiple CSV files often means writing extra code to load, combine, and process each file.

Solution

DuckDB makes this simpler by letting you query multiple CSV files directly with SQL and pattern matching, so you can analyze them in one efficient query.


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