Recent Posts

From a talk at CPPCON - 2017.
C and C++
John Lockwood

A CMake Starter Project

Introduction This article is a follow-on to my recent article, Running the CMake Tutorial in a VS Code Container. Toward the end of that tutorial,

Read More »

Featured

Docker
John Lockwood

How To Use Docker Python Images and Docker Compose With Python

Docker and Python are two great tools that work great together to simplify the development and deployment of an application. Most of my readers are naturally already quite familiar with Python, and I’m sure most are familiar with Docker, but if you’re not, don’t worry. The answer to can you

Read More »
Pandas
John Lockwood

How to Work With Google Sheets In Python and Pandas

Working with spreadsheets in Python on your local machine is relatively simple. For example, Pandas can open a spreadsheet into a DataFrame using read_excel. To do this, Pandas relies on another package for reading and writing spreadsheets, openpyxl. Once you’ve installed this package using your favorite package manager, the process

Read More »
Python Practice
John Lockwood

NumPy Examples — Practice Questions Make You an Expert

Have you learned some NumPy, but now your learning has stalled because you don’t have any practice questions or exercises to review what you’ve learned? This practice set of forty-five NumPy examples features NumPy questions in varying degrees of difficulty. Some are very common examples of NumPy arrays, others get

Read More »
Math and Math Software
John Lockwood

SymPy: Solving Math Equations in Python and Jupyter

SymPy is a Python library for symbolic mathematics. It’s free and open source, and because it’s written entirely in Python, it’s easy to install and use. Symbolic math software tools, also called Computer Algebra Systems (CAS), allow you to work with mathematical equations more or less as you would on

Read More »
Python Math and Science
John Lockwood

Creating a Python Interactive Plot Using Matplotlib in Jupyter

While static plots tell a story with data, interactive plots let your users explore that story on their own. Simple interactive plots allow for basic operations like scaling or panning a view, which is often necessary to make the data relationships appear at all. More advanced plots allow the user

Read More »
Pandas
John Lockwood

Pandas Examples and Review Questions to Make You an Expert

Pandas is a hugely popular tool for data analysis and machine learning. It builds on the strengths and speed of Numpy to allow for mixed column types in a two-dimensional DataFrame that is indexable by column or row. As popular as it is, Pandas offers so many different ways to

Read More »
Clicky