Where is the make_frames module?

鳥越希
Level 1
Where is the make_frames module?

2024/04/04 18:43 Solved, I imported some modules before run build all.

 

I'm now building Instructions of developer certificate.

First, I imported Developer Assessment project and try to build all

But It failed by following error. and its not expected here

Error in Python process: At line 4: <class 'ModuleNotFoundError'>: No module named 'make_frames'

The code causing the error is

 

 

# -------------------------------------------------------------------------------- NOTEBOOK-CELL: CODE
# -*- coding: utf-8 -*-
import dataiku
from make_frames import parseColumns, stackData, nameColumns, readFolderContent

# -------------------------------------------------------------------------------- NOTEBOOK-CELL: CODE
# Read recipe inputs
heart_disease = dataiku.Folder("BbVlUqgO")

# -------------------------------------------------------------------------------- NOTEBOOK-CELL: CODE
paths = heart_disease.list_paths_in_partition()

# -------------------------------------------------------------------------------- NOTEBOOK-CELL: CODE
names_data = '/heart-disease.names'
paths.remove(names_data)
training_data = paths

# -------------------------------------------------------------------------------- NOTEBOOK-CELL: CODE
text_data = readFolderContent(names_data, heart_disease)

# -------------------------------------------------------------------------------- NOTEBOOK-CELL: CODE
cols = parseColumns(text_data)

# -------------------------------------------------------------------------------- NOTEBOOK-CELL: CODE
df = stackData(training_data, heart_disease)

# -------------------------------------------------------------------------------- NOTEBOOK-CELL: CODE
df = nameColumns(df, cols)

# -------------------------------------------------------------------------------- NOTEBOOK-CELL: CODE
# Write recipe outputs
cleveland_heart_disease = dataiku.Dataset("heart_disease")
cleveland_heart_disease.write_with_schema(df)

 

 

 

I tried some python env but all failed.

I also tried to import make_frames to my python env but its not found.

Anyone know how to run this project?

 

 

0 Kudos
3 Replies
SeanA
Community Manager
Community Manager

Hi @鳥越希 , the make_frames module should be in the project library of the starter project. Is that not true for you?

Dataiku
0 Kudos
鳥越希
Level 1
Author

Sorry, it was my fault.

It looks like I forgot to import some libraries before running build all and that's what's causing this error.

thank you for answering!

0 Kudos
SeanA
Community Manager
Community Manager

Great @鳥越希 ! Good luck with the rest!

Dataiku
0 Kudos