SERVICES
SUCCESS STORIES
BLOG
ABOUT
CONTACT
python
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.
Dec 30, 2022
6 min read
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.
Last updated on Dec 30, 2022
16 min read
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.
Last updated on Sep 15, 2022
1 min read
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.
Last updated on Dec 30, 2022
1 min read
Social Hygiene: Pruning my Twitter Feed with Plumes
While scrolling through my Twitter feed recently, I began to get a little annoyed at the amount of content that I was simply not interested in. In engineering terms, my signal-to-noise ratio was way too low.
Last updated on Dec 30, 2022
13 min read
One Version to Rule Them All: Keeping Your Python Package Version Number in Sync With Git and Poetry
Poetry is my current favourite packaging and dependency management tool for Python. It combines dependency resolution, virtual environments, and packing all into one easy to use tool. However, my one big complaint at the moment is the lack of synchronization between my package version (defined in pyproject.
Last updated on Sep 15, 2022
2 min read
Pushing Timesheet Data and Events to Clockify Using Python
As a follow up to
my recent post
, we can easily push timesheet data to
Clockify
using their API.
Last updated on Sep 15, 2022
2 min read
Download iCal Calendar Data Using Python
Sometimes you need access to your calendar data, such as when making synchronization tools. In my particular case, I use my calendar as a high-level time-tracking tool which I then sync with Clockify using their API.
Last updated on Sep 15, 2022
2 min read
Pushing Streaming Data to Microsoft Power BI for Data Visualization Using Python
Power BI is a business analytics service by Microsoft that aims to provide data visualizations and business intelligence capabilities through simple report and dashboard tools. One interesting feature is the ability to create Streaming Datasets that can receive data through a simple REST API.
Last updated on Sep 15, 2022
3 min read
Tip of the Day: User-based Settings Configuration for Python With Dynaconf
Configurations vary substantially across deployments, but code does (should) not change. An important approach to configuration management is to use config files. dynaconf is one of my favourite packages for achieving this in Python.
Last updated on Sep 15, 2022
2 min read
«
»
Cite
×