Pass keyword args to the Python Rich console upon creation for consistent styling:
Badges
Badges come from GitHub once the author claims this feed.
Recent posts
every link opens the author’s post-
Rich Console: Set default styles with keyword arguments
-
Python Rich console: Setting text width and justification
Have a long Python string , and want to display it nicely?
-
Python Rich console: Separate style from text with Console.print
The “console” object in Python Rich lets you separate formatting from the text:
-
Announcing: Vibe to valid
Vibe coding is fun: You can go from an idea to a working app in a weekend.
-
Pandas option_context: Temporarily change display settings
Want to set an option in Python Pandas, but just temporarily?
-
Pandas options: Setting display precision with pd.set_option
There are tons of config options in Python Pandas.
-
Pandas 3.1 CSV loading: Multi-threaded, but PyArrow is still faster
Reading a CSV into a Python Pandas data frame?
-
New course: Introduction to agentic coding with Claude Code
I’m excited to announce my newest course, Introduction to agentic coding with Claude Code (https://lernerpython.com/courses/intro-agentic-coding-claude-code/). If you want to go beyond giving simple prompts or using Claude Code in trivial […]
-
Pandas 3.1 filter: Selecting rows with a pd.col condition
Starting with Python Pandas 3.1, use “filter” to apply a condition to rows.
-
Pandas 3.1 `select` method: Retrieving specific columns
Want to retrieve specific columns from your Python Pandas data frame?
-
Python 3.15 comprehension unpacking: Why you can’t transform items
The comprehension-unpacking syntax in Python 3.15 is great, but you cannot transform the unpacked elements.
-
Python set comprehension: Unique items from nested iterables
In Python 3.15, get the unique elements in a list of iterables with the new in-comprehension unpacking syntax to create a set comprehension: {*n for n in x} # returns […]
-
Python 3.15 list unpacking: Flattening a nested list
Want to unroll a nested list in Python 3.15?