Learn the proper handling of Python exceptions as well as protecting yourself from when things go wrong. You’ll also learn about how to clean up, after an exception occurs, as well as defining your own exception types when the need arises. Note: This course uses Python 2.7 in its coding examples. [ Improve Your Python […]
Getting to Know the Spyder IDE for Python
YOUTUBE VIDEO Whether you’re a beginner programmer, casual coder, data analyst/scientist, or anyone else that uses Python, I’d recommend you at least check out Spyder IDE (link to other article). Granted, it may not the best choice if you’re a full-time Python developer. But otherwise it has a lot to offer with its blend of […]
Some Good Python IDEs for Casual Coders
There are lots of lists out there on good code editors and integrated development environments (IDEs) for programming in Python. But those articles are often aimed at full-time developers. In this article I want to show you the three IDEs I recommend to Python programmers that are a bit more casual in their programming, each […]
Traditional Face Detection With Python
Computer vision is an exciting and growing field. There are tons of interesting problems to solve! One of them is face detection: the ability of a computer to recognize that a photograph contains a human face, and tell you where it is located. In this article, you’ll learn about face detection with Python. To detect […]
Python Community Interview With Ali Spittel
Happy 2019! For our first community interview of the year, I’m joined by Ali Spittel. Ali is a Pythonista with a passion for CSS art and teaching Python. Join us as we talk about her non-traditional path to learning to code, teaching at a Bootcamp, and her recent move to one of the most positive […]
Tutorial: Find Dominant Colors in an Image through Clustering
Analyzing images with code can be difficult. How do you make your code “understand” the context of an image? In general, the first step of analyzing images with AI is finding the dominant colors. In this tutorial, we’re going to find dominant colors in images using matplotlib‘s image class. Finding dominant colors is also something […]
Reading and Writing Files in Python (Guide)
One of the most common tasks that you can do with Python is reading and writing files. Whether it’s writing to a simple text file, reading a complicated server log, or even analyzing raw byte data, all of these situations require reading or writing a file. In this tutorial, you’ll learn: What makes up a […]
New Course: Learn Data Cleaning with Python and Pandas
Data cleaning might not be the reason you got interested in data science, but if you’re going to be a data scientist, no skill is more crucial. Working data scientists spend at least 60% of their time cleaning data, and dirty data is often ranked the single biggest barrier data scientists face at work. That’s […]
How to Run Your Python Scripts
One of the most important skills you need to build as a Python developer is to be able to run Python scripts and code. This is going to be the only way for you to know if your code works as you planned. It’s even the only way of knowing if your code works at […]
Easily Build and Deploy Your First Python Web App
These days you can make your very own web app for free, in pure Python, with a minimal amount of code. The app we’re going to build is under 100 lines total. Not only that, the entire process, from coding and styling to hosting and embedding, can be surprisingly straightforward once you’ve seen an example. […]
How to Learn Python for Data Science In 5 Steps
Why Learn Python For Data Science? Before we explore how to learn Python for data science, we should briefly answer why you should learn Python in the first place. In short, understanding Python is one of the valuable skills needed for a data science career. Though it hasn’t always been, Python is the programming language […]
Supercharge Your Classes With Python super()
While Python isn’t purely an object-oriented language, it’s flexible enough and powerful enough to allow you to build your applications using the object-oriented paradigm. One of the ways in which Python achieves this is by supporting inheritance, which it does with super(). In this tutorial, you’ll learn about the following: The concept of inheritance in […]
The Factory Method Pattern and Its Implementation in Python
This article explores the Factory Method design pattern and its implementation in Python. Design patterns became a popular topic in late 90s after the so-called Gang of Four (GoF: Gamma, Helm, Johson, and Vlissides) published their book Design Patterns: Elements of Reusable Object-Oriented Software. The book describes design patterns as a core design solution to […]
Quick Tip – Speed up Pandas using Modin
I ran across a neat little library called Modin recently that claims to run pandas faster. The one line sentence that they use to describe the project is: Speed up your Pandas workflows by changing a single line of code Interesting…and important if true. Using modin only requires importing modin instead of pandas and thats […]
The Ultimate List of Data Science Podcasts
Podcasts are a great way to immerse yourself in an industry, especially when it comes to data science. The field moves extremely quickly, and it can be difficult to keep up with all the new developments happening each week! Take advantage of those times in the day when your body is busy, but your mind […]