Check out the first Dataiku 8 Deep Dive focusing on Productivity on October 29th Read More

From a function in a jupyter notebook to a dataframe

Level 1
From a function in a jupyter notebook to a dataframe

Hi Team,



I have created a simple recommendation system in a python notebook. I started by changing the dataiku.dataset to a dictionary.



This is the final function:





Here you can see the results for family nr. 13. 



However, I would like to get recommendations for all family-numbers. The output should be five columns. The first column holding the top recommendation for each family, the second column holding the next best recommendation, etc

0 Kudos
2 Replies
Level 1
Author

Hi. In the end I had correctly coded the transformation to a dataframe. The issue was that it was running for hours. We solved it with multi-processing, which only took a fraction of the time. 



0 Kudos
Dataiker
Dataiker
thanks!
0 Kudos