Skip to content
Ben Alex Keen
  • Home
  • About
  • Blog
Menu Close
  • Home
  • About
  • Blog

Python

  1. Home>
  2. Python>
  3. Page 5

Bucketing Continuous Variables in pandas

  • Post author:Ben Keen
  • Post published:7th May 2017
  • Post category:Python

Bucketing Continuous Variables in pandas In this post we look at bucketing (also known as binning) continuous data into discrete chunks to be used as ordinal categorical variables. We'll start…

Continue ReadingBucketing Continuous Variables in pandas

Parallel Coordinates in Matplotlib

  • Post author:Ben Keen
  • Post published:7th May 2017
  • Post category:Python

Parallel Coordinates in Matplotlib In this post we will be exploring the Auto data set from ISLR, which can be found here. Parellel coordinates is a method for exploring the…

Continue ReadingParallel Coordinates in Matplotlib

Basic Language Processing with NLTK

  • Post author:Ben Keen
  • Post published:6th May 2017
  • Post category:Python

Basic Language Processing with NLTKIn this post, we explore some basic text processing using the Natural Language Toolkit (NLTK). We will be grabbing the most popular nouns from a list…

Continue ReadingBasic Language Processing with NLTK

Bar Charts in Matplotlib

  • Post author:Ben Keen
  • Post published:6th May 2017
  • Post category:Python

Bar Charts in MatplotlibBar charts are used to display values associated with categorical data. The plt.bar function, however, takes a list of positions and values, the labels for x are…

Continue ReadingBar Charts in Matplotlib

Scatter Matrices using pandas

  • Post author:Ben Keen
  • Post published:6th May 2017
  • Post category:Python

Scatter Matrices using pandasUsing pandas we can create scatter matrices to easily visualise any trends in our data. Pandas uses matplotlib to display scatter matrices. We start with our imports…

Continue ReadingScatter Matrices using pandas

Scatter Charts in Matplotlib

  • Post author:Ben Keen
  • Post published:6th May 2017
  • Post category:Python

Scatter Charts in MatplotlibWe start by importing matplotlib and display all visuals inline, using the ggplot style sheet. In [1]: import matplotlib.pyplot as plt %matplotlib inline plt.style.use('ggplot') Scatter plots take 2…

Continue ReadingScatter Charts in Matplotlib

Line Charts in Matplotlib

  • Post author:Ben Keen
  • Post published:6th May 2017
  • 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…

Continue ReadingLine Charts in Matplotlib

Correlation in Python

  • Post author:Ben Keen
  • Post published:1st May 2017
  • 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…

Continue ReadingCorrelation in Python

Interacting with the Twitter API using Python

  • Post author:Ben Keen
  • Post published:27th April 2017
  • 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…

Continue ReadingInteracting with the Twitter API using Python

Implementing Djikstra’s Shortest Path Algorithm with Python

  • Post author:Ben Keen
  • Post published:11th January 2017
  • 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…

Continue ReadingImplementing Djikstra’s Shortest Path Algorithm with Python
  • Go to the previous page
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • Go to the next page
© Ben Alex Keen