Group By & Aggregate Functions to Solve Python Coding Questions

preview_player
Показать описание
This video will walk you through Whole Foods Market's 'Brand Segmentation based on Customer Activity' Python interview question solution. We'll use the groupby() and agg() functions to solve a difficult coding question and demonstrate how to use these functions to solve real-world problems.

🧑‍💻 Go to the question through the link below and follow along with me:

______________________________________________________________________

______________________________________________________________________

Timeline:

Intro: (0:00​​​)
Interview Question: (0:30)
Exploring and understanding the dataset: (0:39)
Writing out the approach: (2:14)
Coding the solution: (4:07​​)
Conclusion: (​9:48)

______________________________________________________________________

About The Platform:

______________________________________________________________________

Contact:

If you have any questions, comments, or feedback, please leave them here!

______________________________________________________________________
#StrataScratch #PythonInterviewQuestion #PythonCodingInterview
Рекомендации по теме
Комментарии
Автор

not sure if the lambda function like that will work on real python

huanchenli
Автор

you can probably fit the 3-5 steps into one with:
.groupby(['customer_id', 'store_brand'], as_index=False)
.agg(...)

rollinas