Error in a deduplication python recipe

UserBird Dataiker, Alpha Tester Posts: 535 Dataiker


I'm trying to remove duplicates in a dataset using a Python recipe in the form of "unique_records_for_cols = XXX_df.drop_duplicates(cols=['AAA', 'BBB'])"

My recipe seems correct (I'm successfully using a similar one on another dataset), yet the build keeps failing after a couple minutes, with the following log : Process return code is 137
at com.dataiku.dip.dataflow.exec.AbstractCodeBasedRecipeRunner.execute(
at com.dataiku.dip.dataflow.exec.AbstractCodeBasedRecipeRunner.execute(
at com.dataiku.dip.dataflow.exec.AbstractPythonRecipeRunner.executeScript(
at com.dataiku.dip.dataflow.jobrunner.ActivityRunner$

I've run out of ideas as to where that might come from. Any suggestion ?

Thanks in advance,



  • jrouquie
    jrouquie Dataiker Alumni Posts: 87 ✭✭✭✭✭✭✭
    Hi dear user with the same initials as me ;-)

    Error 137 means that the Python process has been killed. This is probably because it was consuming too much memory, see here:

    To drop duplicates on a large dataset, you could add memory on the server, use clever Python code to load only part of the dataset in memory (like only some of the columns), or switching to another processing engine, like SQL, or maybe Hadoop if the dataset gets very large.
  • JBR
    JBR Registered Posts: 6 ✭✭✭✭
    Thanks a lot for the extremely quick answer Jean-Baptiste, I'll try to find a workaround.

    Have a nice day.

Setup Info
      Help me…