Error in a deduplication python recipe

Error in a deduplication python recipe



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,



0 Kudos
2 Replies
Dataiker Alumni
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.
0 Kudos
Level 1
Thanks a lot for the extremely quick answer Jean-Baptiste, I'll try to find a workaround.

Have a nice day.

0 Kudos


Labels (3)
A banner prompting to get Dataiku