Matt Carter

This is my personal blog. Opinions are my own and do not reflect any position or statement of my employer. I like to write about topics related to data/analytics (occasionally I may stray from those). I've been working in Business Intelligence (BI) for 17+ years.

Coding Python in VS Code (vs Spyder)

There are a lot of different Python Integrated Development Environments (IDE). This article will discuss using VS Code, a free open-source offering from Microsoft vs Spyder, another open-source offering. Spyder is provided out of the box with the popular Anaconda Python distribution. Anaconda generally targets those working in data science because it provides many common data science-based packages pre-installed. Spyder gives an interactive experience, showing the user both a .py file for codin...
Read post

How I Structure Python Scripts

Python scripts can quickly become complex beasts, especially when nested if statements and long routines come into play. But what if there was a way to tame this complexity, making your code more readable and maintainable? I'm going to describe a way to structure your Python script so that it is easy and clear to follow regardless of complexity. This pattern may not be suitable for every scenario, but for most processes that are contained to one or two scripts I find it very useful. The guiding...
Read post