Error while generating python output
hi All
i am trying to run a python recipe and the jobs runs completely fine, but when i am trying to explore my output data set i can see the below error please find the screenshot attached can someone please suggest actions on it
Best Answer
-
Sergey Dataiker, Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS Core Concepts Posts: 365 Dataiker
Thanks. Can you do the same in the python recipe? You will see the print statement under [dku.utils] lines.
Answers
-
it basically looks like this
Root path does not exist
Root path of the dataset output_dataiku_ does not exist
This error is typically caused by either:A dataset configuration issue. You need to modify the affected settings to fix the issue
The dataset needs to be (re)built (if it is a target in the Flow). -
Sergey Dataiker, Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS Core Concepts Posts: 365 Dataiker
Hi @Srkanoje
It means that your python code hasn't returned any error (job succeeded) but there was no output generated. Do you have a piece of code that writes into the dataset?
# Write recipe outputs <output_dataset_handle> = dataiku.Dataset("<dataset_name>") <output_dataset_handle>.write_with_schema(<df_you_want_to_write>)
-
@sergeyd
i have it in my code but still not producing the output can you suggestsubmid = pd.DataFrame({'Dummy_number': df_test["Dummy_Number"],'Issue_Description': df_test["Issue_Description"]})
prediction = pd.DataFrame(preds, columns = class_names)
submission = pd.concat([submid, pd.DataFrame(preds, columns = class_names)], axis=1)
submission.to_csv('submission_newPRT_1119_alt.csv', index=False)submission_df = submission
output_dataiku_df = submission_df
#Write recipe outputs
output_dataiku_ = dataiku.Dataset("output_dataiku_")
output_dataiku_.write_schema_from_dataframe(output_dataiku_df)
but still the same error gets repeated -
Sergey Dataiker, Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS Core Concepts Posts: 365 Dataiker
Hi,
Can you please check that your "output_dataiku_df" dataframe has data?
-
yes it shown data when i tired to print it in a python notebook