Pytest: A Testing Framework for Python Code Photo by Ratanjot Singh on Unsplash How can you check that your code changes actually achieve what they’re meant to? Ensuring your code has integrity is actually quite difficult to ensure, especially at scale. Usually you’ll work in a large team with different people working on different parts of the system.... Continue Reading →
The Top 4 Virtual Environments in Python for Data Scientists
Which Environment Is Yours?Photo by Shahadat Rahman on UnsplashVirtual Environments are a relatively difficult thing for new programmers to understand. One problem I had in understanding Virtual Environments was that I could see my environment existed within an MacOS framework, I was using PyCharm and my code was running, what else did I need?However, as your career... Continue Reading →
You’re living in 1985 if you don’t use Docker for your Data Science Projects
What is it Docker and How to to use it with PythonPhoto by Iswanto Arif on UnsplashOne of the hardest problems that new programmers face is understanding the concept of an ‘environment’. An environment is what you could say, the system that you code within. In principal it sounds easy, but later on in your career you... Continue Reading →
Python’s Raise Keyword
How to manually throw an exception in PythonPhoto by Jonathan Daniels on UnsplashException handling in Python can be daunting. I find it particularly difficult because as a researcher, I’m just not very good at thinking like a ‘programmer’ should. I’m thinking more about the speed of my optimisation procedures, rather than ‘is my code handling all edge... Continue Reading →
The Difference between “is” and “==” in Python
Equality and IdentityPhoto by Mr Xerty on UnsplashPython is full of neat tips and tricks and something worth noting are the different ways to indicate equality, and how these specific two ways are different.The == and is command both indicate some form of equality and are often used interchangeably. However, this isn’t exactly correct. To be clear,... Continue Reading →
What is CICD? Where is it in 2020?
OpinionAn in-depth look at the growing marketPhoto by Robynne Hu on UnsplashCICD is a development methodology which has become more important over time. In today’s software driven world, development teams are tasked with delivering applications quickly, consistently, and error-free: every single time.While the challenges are plentiful, CI/CD is simple at its core.For many organisations, achieving true continuous delivery... Continue Reading →
How to Deploy Streamlit on Heroku
OpinionFor Endless Possibilities in Data SciencePhoto by Kevin Ku on UnsplashIn a previous post, I predicted that the popularity of Flask would really take a hit once Streamlit comes more into the mainstream. I also made the comment that I would never use Flask again.I still stand by both of these comments.In that time, I’ve made four... Continue Reading →
PyCharm vs VSCode
OpinionIs it time to change your IDE?Photo by Thao Le Hoang on UnsplashMaybe I’m a bit behind the curve, or maybe because JetBrains have such a big hold on the Python IDE market, it became clear to me in a previous post that a lot more Python coders are using VSCode than I was expecting.Now I’ve used... Continue Reading →
Rating the 8 Top Python IDE’s in 2020
PyCharm has CompetitionPhoto by Hybrid on UnsplashThe IDE you use can completely change your experience when programming. Especially in the early days when you’re learning, you can find it quite challenging if the IDE you use isn’t geared towards solving the problem that you face.At its best, programming is an expression of creativity because us, as... Continue Reading →
4 Sorting Algorithms in Python
Including Time Complexities and CodePhoto by Olav Ahrens Røtne on UnsplashHave you ever tried to sort a deck of cards by hand? You probably, intuitively, used the insertion sort algorithm. The following article will explain why this algorithm works and how long it takes. The good news is that you do end up with a sorted set,... Continue Reading →