Python cumsum() | Solving Python Optimization Questions On a Data Science Interview @stratascratch
Python cumsum() | Solving Python Optimization Questions On a Data Science Interview  @stratascratch
Uploaded May 2022 | Updated September 2026, 1 day ago
In this video, we'll take a close look at one of the larger families of data science questions concerning optimization. We’ll use the cumulative sum or cumsum() function to solve this complex python optimization question.


Link to the question:
platform.stratascratch.com/coding/2082-minimum-number-of-platforms?utm_source=youtube&utm_medium=click&utm_campaign=YT+description+link

______________________________________________________________________

πŸ‘‰ Subscribe to my channel: bit.ly/2GsFxmA
πŸ‘‰ Playlist for more data science interview questions and answers: bit.ly/3jifw81
πŸ‘‰ Playlist for data science interview tips: bit.ly/2G5hNoJ
πŸ‘‰ Practice more real data science interview questions: platform.stratascratch.com/coding?utm_source=youtube&utm_medium=click&utm_campaign=YT+description+link

______________________________________________________________________


Timeline:

Intro: (0:00​​​)
Understanding the data: (1:19)
Formulate the approach: How to use cumsum(): (2:04)
Formulate the approach: Data Preparation: (07:05)
Code execution: (08:51)
Conclusion: (18:19​​)

______________________________________________________________________

About The Platform:

I'm using StrataScratch (platform.stratascratch.com/coding?utm_source=youtube&utm_medium=click&utm_campaign=YT+description+link), a platform that allows you to practice real data science interview questions. There are over 1000+ interview questions that cover coding (SQL and python), statistics, probability, product sense, and business cases.

So, if you want more interview practice with real data science interview questions, visit platform.stratascratch.com/coding?utm_source=youtube&utm_medium=click&utm_campaign=YT+description+link. All questions are free and you can even execute SQL and python code in the IDE, but if you want to check out the solutions from me or from other users, you can use ss15 for a 15% discount on the premium plans.

______________________________________________________________________

Contact:

If you have any questions, comments, or feedback, please leave them here!
Feel free to also email me at nathan@stratascratch.com
______________________________________________________________________
Python cumsum() | Solving Python Optimization Questions On a Data Science Interview10 over-the-top data science project ideas5 Tips for a Successful Data Science InterviewSolving Complex SQL Interview Questions [How to organize lengthy code solutions][Part 2] EDGE Cases in Data Analysis: How to Reduce the Risk of Missing Important DetailsUsing Rank() and PARTITIONs in SQL To Solve Complex SQL Interview QuestionsFeature Selection for Machine Learning In 5 MinsSolve Data Science Tasks In Python (Saving Hours) (automating import CSV files to database)The Full Stack Data Scientist - Python Libraries You Need To KnowUsing Python Pandas for Building Ubers Business Models [Part 3]Facebook and Microsoft Data Science SQL interview question walkthrough (advanced)How To Solve Data Science Probability Interview Questions | Meta/Facebook Example
StrataScratch |

Python cumsum() | Solving Python Optimization Questions On a Data Science Interview

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER