Excel Challenge: Python GroupBy and Aggregate
HTML-код
- Опубликовано: 16 июл 2024
- This Excel challenge uses a Groupby concept to Group by a parameter and subtotal by another. This python in Excel solution uses the groupby and agg(aggregate) method
00:00 Introduction
00:21 Problem Description
01:00 Victor's thoughts on a solution
01:22 Starting the Python solution
02:31 Including the Year of the dates
03:15 Add a column for Half of the year
04:00 Using a LAMBDA to add the half of the year
05:40 Pandas Groupby
06:46 Using the Agg function for multiple aggregation
07:46 Removing multicolumn indexing
08:37 Final Thoughts
Link to Workbook:
docs.google.com/spreadsheets/...
You are the best bro love from india
Thank you so much. I appreciate the love
Thank you for telling these details about lists, dictionaries... (this detailed explanation is greatly appreciated). Veryyyyy good video, Victor!
Thanks, Ivan. I take it that you are familiar with Python data types from the way your comment was phrased
@@ExcelMoments I have little knowledge. There's something good about that, my learning curve is huge.
@@ExcelMoments It catches my attention in general...To solve the same problem, Excel uses a large formula and Python uses little code, so I deduce that it is a very powerful language.
Another great video! I struggle to learn complex formulas in Excel, so I probably won't add python to my toolkit just yet, but it's really fun to see what it can do. I also enjoyed your video accomplishing this in native Excel, and I would default to that first. Thank you as always for sharing your mastery of Excel!
Absolutely, moving at your pace is important. When the time is right, you can transit gradually
Thank you Victor. Python looks difficult so hopefully AI will help me.
Hahahah, it only is before you master it. Once you master it, you will be fine
Great video, as always. I’m only a casual Python user, so I didn’t even know about the lambda function - who knew that I would learn Python tricks as well as Excel from you! Looking in your crystal ball, do you think Excel will ever incorporate R code as well?
Not the easiest 😂😅
You beg to differ? 😁