#Groupby

Tags: 5 posts

November 29, 2025 7 min read

Advanced pandas GroupBy and Window Functions

Advanced pandas GroupBy and Window Functions Dataset Setup All examples use a retail sales dataset with transactions across stores, regions, and product categories. import pandas as pd import numpy as np np.random.seed(42) dates = …
November 28, 2025 6 min read

pandas groupby() — A Practical Guide

pandas groupby() — A Practical Guide What is groupby()? groupby() splits a DataFrame into buckets based on one or more column values, lets you run a function on each bucket independently, then stitches all the results back together into one …
June 1, 2025 7 min read

PySpark Data Patterns: From Pandas User to Spark Developer

PySpark Data Patterns: From Pandas User to Spark Developer Overview This guide is structured for someone already comfortable with basic PySpark syntax coming from a Pandas background. It covers Spark SQL with views, essential transformation patterns …
April 18, 2024 3 min read

Advanced Pandas GroupBy and Window Functions for Data Engineering and Analytics

Session Outline: Advanced GroupBy and Window Functions in Pandas 1. Introduction to GroupBy and Its Role in Data Engineering (5 minutes) Overview: Recap of GroupBy as a split-apply-combine paradigm, as defined by Wes McKinney in Python for Data …
January 1, 2019 6 min read

T-SQL - Using Functions and aggregating data

``Note : The following scripts are the part of the course on edx titled as: Querying Data with Transact-SQL - `` [Querying Data with Transact-SQL](https://www.edx.org/course/querying-data-with-transact-sql-0) `` These queries works on AdventureWorks …