Skip to content

All company names, logos, and trademarks are the property of their respective owners. Their use is for identification purposes only and does not imply endorsement.

LDS Pandas Window & Aggregation 2525 Curated Python Problems

A 5-stage progression through every pandas window/aggregation pattern — groupby with named aggregation, within-group rank, qcut quartile bucketing, IQR transforms, cumulative running totals, shift period-over-period, rolling 7-day means (both flat-daily and per-entity), and 2D pivot capstones. Twenty-five problems on 15 production-grade schemas — the pandas analog of SQL window functions, where naive solutions hit the for-loop trap.

Problems included in LDS Pandas Window & Aggregation 25

  1. Count Campaigns by Status
  2. Sessions by Status
  3. Total Billed Amount by Provider
  4. Average Driver Rating by City
  5. Total Revenue by Merchant
  6. Creative Asset Approval Summary
  7. Total Revenue by Property
  8. Claim Stats by Place of Service and Network
  9. Trip Stats by City and Service Level
  10. Portfolio Holdings Summary
  11. Rank Users by Post Count
  12. Rank Listings by Price Within City
  13. Trade Amount Quartile Bucketing
  14. Anomalous Transaction Detection (IQR)
  15. Message Activity Feature Engineering
  16. Running Total of Loan Payments
  17. Daily Revenue Change vs Previous Day
  18. 7-Day Moving Average Freight Cost
  19. 7-Day Rolling Average Usage per Org
  20. 7-Day Moving Average Order Value
  21. Pivot Tickets by Channel
  22. Pivot Order Counts by Cuisine and Fulfillment Type
  23. Pivot Rating Distribution by Genre
  24. Carrier Performance Feature Matrix
  25. Customer Feature Matrix