How I Used Python to Monitor Santé Québec's Vaccine Website to Get the First Available Appointment for My Age Group

I really wanted my vaccine and I wanted to be first in line when it was my turn. Québec has been doing a vaccination rollout plan based on age groups and we register for our vaccine through a web portal.

10 Things I Wish They Taught in Engineering School

I spent a good part of my life in school, much of it studying engineering. From a bachelor’s degree in mechanical and biomedical engineering to a Ph.D. in collaborative robotics and machine learning, it was quite an adventure.

Python Tips: How to Stop a Pandas Data Table From Being Truncated When Printed

I love pandas. It’s one of the most important tools for data processing, but sometimes it can be tricky to remember how to adjust settings on the fly. Sometimes, I just want to see all my data, but pandas truncates the view:

Python Tips: How to Read a File Without Newlines

Text files are a common part of data processing. A standard approach to reading a file is to use the readlines(), but this results in a list with newline characters.

Hardware in the Loop: Training Robot Contact in an Unstructured Environment

This talk presents the story and software architecture behind an experimentally tested, machine learning framework for robot contact classification and motion control using a KUKA LBR iiwa robot, gRPC, and Python.

Python for Hardware Engineers: SQLite or; How I Learned to Stop Worrying and Love Databases

Design that is backed by data proves that your work is on the right track. It reveals the pain points, flaws, and opportunities, while unearthing new trends and improves your designs by adding objectivity.

Python Tricks: Replace All Non-alphanumeric Characters in a String

I have a confession to make: I’m a stickler for filenames. I wholeheartedly believe that all filenames and paths should be kebab case or snake case. Spaces, capitalization, and non-alphanumeric characters drive me nuts.

Python for Hardware Engineers: Analyzing Temperature and Humidity Data From an OM-24 Sensor

Data analysis of sensor data is a typical hardware engineering activity that often involves an Excel-based workflow. While Excel (and other spreadsheet tools) are great for quick and dirty, one-off analyses, a Python + pandas workflow can really takes things to the next level.

New Series: Python for Hardware Engineers

Once upon a time, at McGill University in Mechanical Engineering, I took a course called COMP 208 Computer Programming for Physical Sciences and Engineering. The goal was to give us future hardware engineers a foundation in programming, to allow us to automate, perform advanced calculations, and solve our engineering problems through code.

Python Snippets: Dropping Infinite Values From Dataframes in Pandas

Infinite values can occur more often than people expect, especially for calculated data. For example, in a recent post I calculated the Twitter Follower-Friend ratio by dividing the followers_count series by the friends_count series.