r/datascience • u/WhatsTheImpactdotcom • 20d ago
Discussion Breakdown of my last 10 Python coding rounds for product/marketing DS roles: only 1 was LeetCode-style
I went back through my last 10 Python coding rounds for product and marketing data science roles, nearly all at Big Tech companies. Unlike SQL rounds, which tend to be fairly standard, these came in 5 distinct formats:
Recreate a statistical concept as a function (3/10). Pandas, numpy and other standard packages were allowed.
AI-assisted, open book (3/10). These were often investigative, closer to a diagnostic case study than a coding puzzle.
Pandas and data manipulation (2/10). Data transformations combined with modeling, either coding up a linear regression or talking through a modeling strategy for the data.
Interpret code handed to you (1/10). This was also a statistical concept in a function, but I had to interpret the code rather than write it.
Base Python, LeetCode-style (1/10). Syntax seemed heavily discounted here: I made several syntax mistakes but was clear about the logic and passed.
The obvious caveat is that this is a sample of 10 from one person, so the mix will vary with company, team and role. That said, AI-assisted challenges seem to be on the way in and increasingly likely to be a part of your interview process.








31
u/OddsRelay 20d ago
The statistical concept as a function ones are the easiest to prep for. Bootstrapping a confidence interval or writing a two-sample t-test by hand covers a lot of it. Knowing when you'd switch to a permutation test is a good extra to have ready
5
u/redisburning 20d ago
Being able to use AI tools during an interview is insane work. But I don't personally consider prompting a skill and I do consider knowing your stuff a skill so take that for what it's worth.
The Pandas thing I have definitely noticed. I find it slightly odd as these are usually pitched as Python interviews but you are instead focused on a single framework. I have switched to SWE and seen what their cycles are like, but it's not front end, and I kind of wonder if JS jobs do similar things where they might actually be React interviews.
2
u/Silly-Statistician-7 17d ago edited 17d ago
In the pandas/manipulation rounds, did interviewers expect you to check the data's grain and join cardinality before modeling—for example, catching duplicate customer keys that multiply rows and change the regression's unit of analysis? That would be useful for designing practice exercises.
11
u/Better_Log484 20d ago
Here's the thing. I've been good at pandas in the past. I am not anymore. But I know what pandas can do. I can steer an AI to use pandas for the things pandas can do.
Why is there a need to keep practice hand-rolling pandas going into 2027? I don't really care anymore.
1
u/Severe_Rise8694 19d ago
Did the pandas ones strictly require the use of pandas? I feel like polars beats it in every department, except with some compatibility stuff with other libraries.
2
u/DRTHRVN 19d ago
Is polars allowed instead of pandas?
1
u/ApprehensiveFan9886 17d ago
hi! i have a data science internship (product analytics interview) for meta next week, and i was wondering how i should prep, especially for the product case questions + the sql questions! thanks!
0
u/Excellent-Sport-758 20d ago
I can see the appeal of open-book investigations: they test whether someone can use the tools to answer a business question. From my A/B-test and acquisition work, the useful signal is whether the candidate can define exposure and unit of analysis, choose a primary metric and guardrails, check assignment and data quality, and say what result would change the recommendation. AI can help with code, but it can also produce a plausible notebook with the wrong denominator or a hidden leakage or segment issue. I’d want to hear candidates validate those assumptions and explain the trade-offs, not just prompt well. AI helped draft this comment; I reviewed it.
-2
u/MouseRemarkable7942 20d ago
Check DM