How To Use Python Window Functions | Solving Amazon Data Science Interview Question @stratascratch
How To Use Python Window Functions | Solving Amazon Data Science Interview Question  @stratascratch
Uploaded August 2022 | Updated September 2026, 1 hour ago
In this video, we'll take a close look at python window functions, more specifically the aggregate functions: Group By, Rolling, and Expanding. We’ll go over each aggregate function, along with implementing the functions in different interview questions.

Link to the question:
platform.stratascratch.com/coding/9899-percentage-of-total-spend?code_type=2&utm_source=youtube&utm_medium=click&utm_campaign=YT+description+link

Link to the article: stratascratch.com/blog/python-window-functions/?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​​​)
Python Window Functions Introduction: (00:16)
Aggregate Functions: Group By: (01:43)
Amazon Interview Question: (02:20)
Solution: Formulate Approach: (2:58)
Solution: Breakdown: (04:30)
Solution: Code Execution (04:25)
Edge Case Consideration (05:55)
Edge Case Implementation (06:31)
Aggregate Functions: Rolling And Expanding (6:53)
San Francisco Weather Question: Rolling Aggregate Function: (09:35)
Solution: Formulate Approach: (09:50)
Solution: Code Execution (10:13)
San Francisco Weather Question: Expanding Aggregate Function: (14:00)
Solution: Formulate Approach: (14:10)
Solution: Code Execution (14:24)
Conclusion: (15:35​​)

______________________________________________________________________

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
______________________________________________________________________
How To Use Python Window Functions | Solving Amazon Data Science Interview QuestionHow To Handle Multicollinearity and Feature Selection [DoorDash Data Science Project]An Analysis of 900 Data Science Interview Questions | Data Science Interview GuideWhen Not to Use Machine LearningDoorDash Medium Level SQL Interview QuestionSQL Basics: How to Join Multiple Tables in SQL and the Importance of LEFT JOIN vs INNER JOINThe Data Science Industry Has a Problem (And Youre Part of It)Data Science SQL Interview Question Walkthrough [Microsoft] - Window Function: RankingData Provides vs Data Users: Choose Your Job in Data ScienceThe Most Popular Algorithms For BeginnersAirbnb Python Coding Practice for InterviewSQL Interview Questions From MICROSOFT | Expensive Projects (Data Science Interview Questions)
StrataScratch |

How To Use Python Window Functions | Solving Amazon Data Science Interview Question

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER