The short answer: Yes, absolutely. For several decades now, a degree in computer science (or related field) has almost guaranteed employment, with good salaries, excellent benefits, and comfortable working conditions. […] The post Do programmers have a future? appeared first on LernerPython.
Tomorrow is Thanksgiving in the US. Use the “holidays” package to calculate its date in Python: The post Python holidays package: Find the date of Thanksgiving appeared first on LernerPython.
I record a lot of videos, both for my courses and for my YouTube channel. And while it’s not a huge problem, I’ve always been frustrated that the notes that […] The post Announcing: Teleprompter appeared first on LernerPython.
Let’s say you need a new shirt. In 2026, you have so many options for buying that shirt. You can shop online. You can (horrors!) go into a physical store. […] The post The end of enterprise software — or, a world of custom solutions appeared first on LernerPython.
Want your Python traceback to look nice? Use Rich: Now your tracebacks will be colorized and highlighted, with local variables clearly displayed and set apart (thanks to show_locals=True). The post Python tracebacks with Rich: Colorized output and local variables appeared first on LernerPython.
Is your Python program going to take a while? Use Rich to display animation while waiting: The status marker goes to the left of your text. See “python -m rich.spinner” […] The post Python loading spinners with Rich: Using Console.status appeared first on LernerPython.
Create beautiful tables in Python with Rich: # call once per column: # print it! The post Rich tables in Python: Using Table, add_column, and add_row appeared first on LernerPython.
Pass keyword args to the Python Rich console upon creation for consistent styling: The post Rich Console: Set default styles with keyword arguments appeared first on LernerPython.
Have a long Python string , and want to display it nicely? With Rich’s console, you can set the width or justification: The post Python Rich console: Setting text width and justification appeared first on LernerPython.
The “console” object in Python Rich lets you separate formatting from the text: The post Python Rich console: Separate style from text with Console.print appeared first on LernerPython.
Vibe coding is fun: You can go from an idea to a working app in a weekend. But if you don’t have a background in software, how can you be […] The post Announcing: Vibe to valid appeared first on LernerPython.
Want to set an option in Python Pandas, but just temporarily? You can use option_context: Within the “with” block, the display precision is 2. But outside — before or after […] The post Pandas option_context: Temporarily change display settings appeared first on LernerPython.
There are tons of config options in Python Pandas. Set them with pd.set_option: Now floats in a series or data frame will have 2 digits after the decimal. Retrieve the […] The post Pandas options: Setting display precision with pd.set_option appeared first on LernerPython.
Reading a CSV into a Python Pandas data frame? Before version 3.1, loading CSV was single-threaded and slow. My test file took 1.03s. In 3.1, it’s now multi-threaded and much […] The post Pandas 3.1 CSV loading: Multi-threaded, but PyArrow is still faster appeared first on LernerPython.
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 […] The post New course: Introduction to agentic coding with Claude Code appeared first on LernerPython.
Starting with Python Pandas 3.1, use “filter” to apply a condition to rows. So: can now be (the much slower): The post Pandas 3.1 filter: Selecting rows with a pd.col condition appeared first on LernerPython.
Want to retrieve specific columns from your Python Pandas data frame? In the past, you would say But now, with version 3.1, you can use the “select” method: The post Pandas 3.1 `select` method: Retrieving specific columns appeared first on LernerPython.
The comprehension-unpacking syntax in Python 3.15 is great, but you cannot transform the unpacked elements. Given: [[10, 20, 30], [40, 50, 60], [70, 80]] We can get the individual numbers, […] The post Python 3.15 comprehension unpacking: Why you can’t transform items appeared first on LernerPython.
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 […] The post Python set comprehension: Unique items from nested iterables appeared first on LernerPython.
Want to unroll a nested list in Python 3.15? Use a nested list comprehension: Or use the new unpacking syntax: [*n for n in x] # same thing! The post Python 3.15 list unpacking: Flattening a nested list appeared first on LernerPython.
Read at the source
Your visit, your choice.
Optional Google Analytics helps us understand visits. Microsoft Clarity records masked interactions to improve the site. Optional tools stay off unless you choose them. Privacy details.