January 2020
Beginner to intermediate
372 pages
10h
English
In this recipe, we identified the local maxima and minima in a time series for a single household. But how could we determine the local maxima and minima for several houses? We can combine the use of pandas groupby(), pandas agg(), and user-defined functions to achieve this goal. To demonstrate how to do this, we will use the toy customer transactions dataset from Featuretools. Let's get started:
import numpy as npimport pandas as pdimport matplotlib.pyplot as pltfrom scipy.signal import ...
Read now
Unlock full access