-
HTTP status codes returned by DSS API node/service
Two questions: 1. Will an exception, raised during execution of API service code, always result in a response with a 500 HTTP status code? 2. Aside from that, errors can occur outside of API service code execution (e.g. service is unavailable). Is there an overview available of which situations map to which HTTP status…
-
Renaming a saved model using Dataiku Python API
How to rename a saved model using API?
-
Remapping Connection (under Activation Settings) in Bundle Management using Dataiku Python API
I am trying to remap/update the already existing Blob container connection name I have created a Bundle in Design Node and imported & activated in Auto Node. Both the nodes are pointing to separate Azure Blob Containers Unable to figure out if the connection settings have to be updated before the creation of the bundle OR…
-
How to append dataframe in existing output dataset
Hello experts, In dataiku v12.3.0, I was trying to append dataframe using write_dataframe() in existing dataset (with same schema). But it always overwrites with last dataframe even though the dataset spec is configured like: dataset.spec_item["appendMode"] = True The dataset is classified as output so it doesn't let me…
-
is there a way to check if python code is ran in a recipe vs notebook?
I recently bumped into an issue where my python code was not executed the same way wether it was ran from a notebook or its corresponding recipe*. I eventually used the following function but I was wondering if there were a native function in dataiku to detect the running environment? def in_ipynb(): try: get_ipython()…
-
Possible to set importLibrariesFromProjects using Python
Hi, I need to be able to set importLibrariesFromProjects using Python, is this possible? thx Operating system used: Windows10
-
Default project key is not specified (no DKU_CURRENT_PROJECT_KEY in env)
I'm creating a python function endpoint with this script: And I don't know how to deal with this error: Dev server deployment FAILED Failed to initiate function server : <class 'Exception'> : Default project key is not specified (no DKU_CURRENT_PROJECT_KEY in env)
-
See code behind the insight
Hi guys, I wonder if is is possible to generate the code behind the visualizations. I mean, I have generated some insights (bar plot, line plot and Pie plot) on Dataiku "design node", but I would like to get the code in Python from these charts and past it on my jupyter notebook. Is that possible? Operating system used:…
-
Predictions made using Dataiku Snowpark API Yield Single Class for Multi-Class Classification model
Hello community, I am facing an issue when using Dataiku's Snowpark API to make predictions from a multi-class classification model. The model is trained with Dataiku and a Snowflake table via Visual ML. The predictions only return one class, while the same table loaded as a pandas DataFrame returns correct predictions…
-
Create SQL table for Dataset using python API
Using python API, I can create an SQL Dataset, or clear it using the DSSDataset.clear() method, but afterwards I have to manually click the "Create Table Now" in the settings tab of the dataset before using it in recipes. Is there a way to achieve the same effect as clicking the button using the python API? I checked the…