@pytest.fixture
def dask_es(make_es):
es = ft.EntitySet(id=make_es.id)
for entity in make_es.entities:
es.entity_from_dataframe(entity.id,
dd.from_pandas(entity.df.reset_index(drop=True), npartitions=4),
index=entity.index,
time_index=entity.time_index,
variable_types=entity.variable_types,
secondary_time_index=entity.secondary_time_index)
for rel in make_es.relationships:
es.add_relationship(ft.Relationship(es[rel.parent_entity.id][rel.parent_variable.id],
es[rel.child_entity.id][rel.child_variable.id]))
return es