January 2020
Beginner to intermediate
372 pages
10h
English
Let's begin by importing the necessary libraries and getting the dataset ready:
import pandas as pdimport featuretools as ft
data_dict = ft.demo.load_mock_customer()data = data_dict["transactions"].merge( data_dict["sessions"]).merge(data_dict["customers"])data = data[['customer_id', 'transaction_id', 'transaction_time', 'amount']]
To work with Featuretools, we need to transform the dataframe into an entity set. To do this, we'll create an entity set and give it a representative name:
es = ft.EntitySet(id="customer_data")
Read now
Unlock full access