How to build a REST API using Python and Flask

Photo by Christopher Gower on Unsplash

If, like me, you find the prospect of building your own API exciting but have no idea where to start — look no further. This article serves as a gentle guide towards building your own REST API using Python and the Flask framework.

The purpose of an API is to share data from one application to another.

Before we jump in, let’s get to know the Flask library a little better —

Flask is a Python library for web application development that was created as a beginner friendly “micro” framework…


Building a decision tree classifier with Python and Scikit-Learn

Photo by Ben Dove on Unsplash

Just like regression, classification algorithms are the bread to our data science butter and all serious data science enthusiasts should have a few classification algorithms under their belt. In this article, I will be taking you through the exploration of the penguins dataset and we will ultimately be fitting a decision tree classifier to predict a penguin’s species.

The dataset

In this example, we will be using Python’s pmlb library and the penguins dataset. If you don’t have the pmlb library installed, go ahead and do so.

pip install pmlb

Next, we import our plotting libraries that will aid in the exploration…

Renier Meyer

An industrial engineer with a passion for data science.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store