A nightly pandas preprocessing job now takes 6 hours
Interview insights are lockedSee how often this is asked and which companies asked it with Buncho Pro.Situation. A nightly feature-building job for a recommendation model used to finish in 40 minutes. After the dataset grew to 30 million rows it takes about 6 hours and sometimes dies with out-of-memory errors. The data science team asks you to make it fast and reliable before the morning model refresh.
Use the profile and the code excerpt to find the main causes and propose a prioritised plan with expected gains and safeguards for correctness.
Scenario data
Logs and configuration from the incident. Use them as evidence in your answer.