Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
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
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?
Hi @鳥越希 , the make_frames module should be in the project library of the starter project. Is that not true for you?
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!
Great @鳥越希 ! Good luck with the rest!