January 2020
Beginner to intermediate
372 pages
10h
English
Let's begin by importing the necessary libraries:
import pandas as pdimport numpy as npimport matplotlib.pyplot as pltimport seaborn as snsimport scipy.stats as stats
To proceed with this recipe, let's create a toy dataframe with a single variable, x, that follows a normal distribution.
np.random.seed(29)x = np.random.randn(200)
data = pd.DataFrame([x]).Tdata.columns = ['x']
Read now
Unlock full access