January 2020
Beginner to intermediate
372 pages
10h
English
Let's begin the recipe by importing the necessary libraries:
import pandas as pdimport numpy as npimport matplotlib.pyplot as plt
To proceed with this recipe, let's create a toy dataframe with three variables called x, y, and z, that follow a normal distribution and show a few negative values. To create this toy dataframe, we need to follow these steps:
np.random.seed(29)n = 200x = np.random.randn(n) + 2y = np.random.randn(n) * 2 + 4z = np.random.randn(n) * 5 + 10
Read now
Unlock full access