## Line Charts in Matplotlib

• Post author:
• Post category:Python

Line Charts in MatplotlibWe start by importing matplotlib and display all visuals inline In [1]: import matplotlib.pyplot as plt %matplotlib inline We'll use the ggplot style in this example for aesthetics…

## Mapping Categorical Data in pandas

Mapping Categorical Data in pandasIn python, unlike R, there is no option to represent categorical data as factors. Factors in R are stored as vectors of integer values and can…

## Correlation in Python

• Post author:
• Post category:Python

Correlation in PythonCorrelation values range between -1 and 1. There are two key components of a correlation value: magnitude - The larger the magnitude (closer to 1 or -1), the…

## Interacting with the Twitter API using Python

• Post author:
• Post category:Python

Interacting with the Twitter API using pythonTwitter has a RESTful API to retrieve Tweets for certain queries for use in your applications. This post will show how we can authorise…

## Implementing Djikstra’s Shortest Path Algorithm with Python

• Post author:
• Post category:Python

Djikstra's algorithm is a path-finding algorithm, like those used in routing and navigation. We will be using it to find the shortest path between two nodes in a graph. It…

## Linear Algebra using numpy – Vectors

• Post author:
• Post category:Python

Linear Algebra using numpy - Vectors In this post we explore some common linear algebra functions and their application in pure python and numpy Python lists are not vectors, they…

## Resampling time series data with pandas

• Post author:
• Post category:Python

Resampling time series data with pandasIn this post, we'll be going through an example of resampling time series data using pandas. We're going to be tracking a self-driving car at…

## Linear Programming with Python and PuLP

• Post author:
• Post category:Python

Introduction to Linear Programming with Python and PuLP Linear Programming, also sometimes called linear optimisation, involves maximising or minimising a linear objective function, subject to a set of linear inequality…

## Linear Programming with Python and PuLP – Part 6

• Post author:
• Post category:Python

Introduction to Linear Programming with Python - Part 6Mocking conditional statements using binary constraints In part 5, I mentioned that in some cases it is possible to construct conditional statements…

## Linear Programming with Python and PuLP – Part 5

• Post author:
• Post category:Python

Introduction to Linear Programming with Python - Part 5Using PuLP with pandas and binary constraints to solve a scheduling problem In this example, we'll be solving a scheduling problem. We…