December 2015
Beginner to intermediate
202 pages
4h
English
Plotting our data in a histogram as a probability distribution tells matplotlib to integrate the total area of the histogram, and scale the values appropriately. Rather than showing how many values go into each bin as in the previous recipe, we'll have the probability of finding a number in the bin.
matplotlib plots in IPython Notebook, we will use an IPython magic function which starts with %:%matplotlib inline import pandas as pd import numpy as np from pymongo import MongoClient import matplotlib as mpl import matplotlib.pyplot as plt
Read now
Unlock full access