From a function in a jupyter notebook to a dataframe

Lilja
Lilja Registered Posts: 5 ✭✭✭✭

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

Tagged:

Answers

  • Lilja
    Lilja Registered Posts: 5 ✭✭✭✭

    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.

  • Alex_Combessie
    Alex_Combessie Alpha Tester, Dataiker Alumni Posts: 539 ✭✭✭✭✭✭✭✭✭
    thanks!
Setup Info
    Tags
      Help me…