From a function in a jupyter notebook to a dataframe

Highlighted
Lilja
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
Lilja
Level 1
Re: From a function in a jupyter notebook to a dataframe

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
Alex_Combessie Dataiker
Dataiker
Re: From a function in a jupyter notebook to a dataframe
thanks!
0 Kudos
Labels (2)