Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix variable type in demo data #37

Merged
merged 1 commit into from
Dec 1, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion featuretools/demo/mock_customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from numpy.random import choice

import featuretools as ft
from featuretools.variable_types import Categorical


def load_mock_customer(n_customers=5, n_products=5, n_sessions=35, n_transactions=500,
Expand Down Expand Up @@ -57,7 +58,8 @@ def load_mock_customer(n_customers=5, n_products=5, n_sessions=35, n_transaction
es = es.entity_from_dataframe(entity_id="customers",
dataframe=customers_df,
index="customer_id",
time_index="join_date")
time_index="join_date",
variable_types={"zip_code": Categorical})

rels = [ft.Relationship(es["products"]["product_id"],
es["transactions"]["product_id"]),
Expand Down